#include <zSelector.h>
Public Member Functions | |
zSelectorOwner () | |
zSelectorOwner (zSelectorOwner const &other) | |
void | operator= (zSelectorOwner const &other) |
overloaded assignment operator | |
virtual zSelectorOwner * | copy (void) const |
virtual | ~zSelectorOwner () |
gVectorExtra< ePlayerNetID * > | select (gVectorExtra< nNetObjectID > &owners, gVectorExtra< nNetObjectID > &teamOwners, gCycle *triggerer) |
Static Public Member Functions | |
static zSelector * | create () |
Definition at line 203 of file zSelector.h.
zSelectorOwner::zSelectorOwner | ( | ) |
Definition at line 433 of file zSelector.cpp.
Referenced by copy(), and create().
00433 : 00434 zSelector() 00435 { }
zSelectorOwner::zSelectorOwner | ( | zSelectorOwner const & | other | ) |
virtual zSelectorOwner::~zSelectorOwner | ( | ) | [inline, virtual] |
zSelector * zSelectorOwner::create | ( | ) | [static] |
Reimplemented from zSelector.
Definition at line 428 of file zSelector.cpp.
References zSelectorOwner().
00429 { 00430 return new zSelectorOwner(); 00431 }
void zSelectorOwner::operator= | ( | zSelectorOwner const & | other | ) |
overloaded assignment operator
Definition at line 441 of file zSelector.cpp.
References zSelector::operator=().
00442 { 00443 this->zSelector::operator=(other); 00444 }
zSelectorOwner * zSelectorOwner::copy | ( | void | ) | const [virtual] |
Reimplemented from zSelector.
Definition at line 446 of file zSelector.cpp.
References zSelectorOwner().
00447 { 00448 return new zSelectorOwner(*this); 00449 }
gVectorExtra< ePlayerNetID * > zSelectorOwner::select | ( | gVectorExtra< nNetObjectID > & | owners, | |
gVectorExtra< nNetObjectID > & | teamOwners, | |||
gCycle * | triggerer | |||
) | [virtual] |
Reimplemented from zSelector.
Definition at line 451 of file zSelector.cpp.
References sn_netObjects.
00452 { 00453 // The owner of the Zone receives the effect upon trigger, 00454 // irrelevantly of the user who triggers it. 00455 gVectorExtra<ePlayerNetID *> owningPlayers; 00456 00457 for(gVectorExtra< nNetObjectID >::const_iterator iter=owners.begin(); 00458 iter!=owners.end(); 00459 ++iter) { 00460 // Is the object still there 00461 if(bool(sn_netObjects[(*iter)])) 00462 { 00463 ePlayerNetID * anOwner = static_cast< ePlayerNetID* >( static_cast< nNetObject* >( sn_netObjects[ (*iter) ] ) ) ; 00464 if(anOwner != 0) 00465 owningPlayers.push_back( anOwner ); 00466 } 00467 } 00468 return owningPlayers; 00469 }