#include <zSelector.h>
Public Member Functions | |
zSelectorAllDead () | |
zSelectorAllDead (zSelectorAllDead const &other) | |
void | operator= (zSelectorAllDead const &other) |
overloaded assignment operator | |
virtual zSelectorAllDead * | copy (void) const |
virtual | ~zSelectorAllDead () |
gVectorExtra< ePlayerNetID * > | select (gVectorExtra< nNetObjectID > &owners, gVectorExtra< nNetObjectID > &teamOwners, gCycle *triggerer) |
Static Public Member Functions | |
static zSelector * | create () |
Definition at line 273 of file zSelector.h.
zSelectorAllDead::zSelectorAllDead | ( | ) |
Definition at line 637 of file zSelector.cpp.
Referenced by copy(), and create().
00637 : 00638 zSelector() 00639 { }
zSelectorAllDead::zSelectorAllDead | ( | zSelectorAllDead const & | other | ) |
virtual zSelectorAllDead::~zSelectorAllDead | ( | ) | [inline, virtual] |
zSelector * zSelectorAllDead::create | ( | ) | [static] |
Reimplemented from zSelector.
Definition at line 632 of file zSelector.cpp.
References zSelectorAllDead().
00633 { 00634 return new zSelectorAllDead(); 00635 }
void zSelectorAllDead::operator= | ( | zSelectorAllDead const & | other | ) |
overloaded assignment operator
Definition at line 645 of file zSelector.cpp.
References zSelector::operator=().
00646 { 00647 this->zSelector::operator=(other); 00648 }
zSelectorAllDead * zSelectorAllDead::copy | ( | void | ) | const [virtual] |
Reimplemented from zSelector.
Definition at line 650 of file zSelector.cpp.
References zSelectorAllDead().
00651 { 00652 return new zSelectorAllDead(*this); 00653 }
gVectorExtra< ePlayerNetID * > zSelectorAllDead::select | ( | gVectorExtra< nNetObjectID > & | owners, | |
gVectorExtra< nNetObjectID > & | teamOwners, | |||
gCycle * | triggerer | |||
) | [virtual] |
Reimplemented from zSelector.
Definition at line 655 of file zSelector.cpp.
References _dead, zSelector::getAllValid(), GrowingArrayBase::Len(), and se_PlayerNetIDs.
00656 { 00657 // All dead players receives the effect. 00658 00659 gVectorExtra<ePlayerNetID *> everybody; 00660 for (int i=0; i<se_PlayerNetIDs.Len(); i++) { 00661 everybody.push_back( se_PlayerNetIDs(i) ); 00662 } 00663 00664 gVectorExtra<ePlayerNetID *> everybodyDead; 00665 getAllValid(everybodyDead, everybody, _dead); 00666 00667 return everybodyDead; 00668 }