#include <zSelector.h>
Public Member Functions | |
zSelectorAll () | |
zSelectorAll (zSelectorAll const &other) | |
void | operator= (zSelectorAll const &other) |
overloaded assignment operator | |
virtual zSelectorAll * | copy (void) const |
virtual | ~zSelectorAll () |
gVectorExtra< ePlayerNetID * > | select (gVectorExtra< nNetObjectID > &owners, gVectorExtra< nNetObjectID > &teamOwners, gCycle *triggerer) |
Static Public Member Functions | |
static zSelector * | create () |
Definition at line 130 of file zSelector.h.
zSelectorAll::zSelectorAll | ( | ) |
Definition at line 239 of file zSelector.cpp.
Referenced by copy(), and create().
00239 : 00240 zSelector() 00241 { }
zSelectorAll::zSelectorAll | ( | zSelectorAll const & | other | ) |
virtual zSelectorAll::~zSelectorAll | ( | ) | [inline, virtual] |
zSelector * zSelectorAll::create | ( | ) | [static] |
Reimplemented from zSelector.
Definition at line 234 of file zSelector.cpp.
References zSelectorAll().
00235 { 00236 return new zSelectorAll(); 00237 }
void zSelectorAll::operator= | ( | zSelectorAll const & | other | ) |
overloaded assignment operator
Definition at line 247 of file zSelector.cpp.
References zSelector::operator=().
00248 { 00249 this->zSelector::operator=(other); 00250 }
zSelectorAll * zSelectorAll::copy | ( | void | ) | const [virtual] |
Reimplemented from zSelector.
Definition at line 252 of file zSelector.cpp.
References zSelectorAll().
00253 { 00254 return new zSelectorAll(*this); 00255 }
gVectorExtra< ePlayerNetID * > zSelectorAll::select | ( | gVectorExtra< nNetObjectID > & | owners, | |
gVectorExtra< nNetObjectID > & | teamOwners, | |||
gCycle * | triggerer | |||
) | [virtual] |
Reimplemented from zSelector.
Definition at line 257 of file zSelector.cpp.
References _alive, zSelector::getAllValid(), GrowingArrayBase::Len(), and se_PlayerNetIDs.
00258 { 00259 // Everybody in the game receives the effect. 00260 gVectorExtra<ePlayerNetID *> everybody; 00261 for (int i=0; i<se_PlayerNetIDs.Len(); i++) { 00262 everybody.push_back( se_PlayerNetIDs(i) ); 00263 } 00264 00265 gVectorExtra<ePlayerNetID *> everybodyValid; 00266 getAllValid(everybodyValid, everybody, _alive); 00267 00268 return everybodyValid; 00269 }