#include <zSelector.h>
Public Member Functions | |
zSelectorTeam () | |
zSelectorTeam (zSelectorTeam const &other) | |
void | operator= (zSelectorTeam const &other) |
overloaded assignment operator | |
virtual zSelectorTeam * | copy (void) const |
virtual | ~zSelectorTeam () |
gVectorExtra< ePlayerNetID * > | select (gVectorExtra< nNetObjectID > &owners, gVectorExtra< nNetObjectID > &teamOwners, gCycle *triggerer) |
Static Public Member Functions | |
static zSelector * | create () |
Definition at line 114 of file zSelector.h.
zSelectorTeam::zSelectorTeam | ( | ) |
Definition at line 198 of file zSelector.cpp.
Referenced by copy(), and create().
00198 : 00199 zSelector() 00200 { }
zSelectorTeam::zSelectorTeam | ( | zSelectorTeam const & | other | ) |
virtual zSelectorTeam::~zSelectorTeam | ( | ) | [inline, virtual] |
zSelector * zSelectorTeam::create | ( | ) | [static] |
Reimplemented from zSelector.
Definition at line 193 of file zSelector.cpp.
References zSelectorTeam().
00194 { 00195 return new zSelectorTeam(); 00196 }
void zSelectorTeam::operator= | ( | zSelectorTeam const & | other | ) |
overloaded assignment operator
Definition at line 206 of file zSelector.cpp.
References zSelector::operator=().
00207 { 00208 this->zSelector::operator=(other); 00209 }
zSelectorTeam * zSelectorTeam::copy | ( | void | ) | const [virtual] |
Reimplemented from zSelector.
Definition at line 211 of file zSelector.cpp.
References zSelectorTeam().
00212 { 00213 return new zSelectorTeam(*this); 00214 }
gVectorExtra< ePlayerNetID * > zSelectorTeam::select | ( | gVectorExtra< nNetObjectID > & | owners, | |
gVectorExtra< nNetObjectID > & | teamOwners, | |||
gCycle * | triggerer | |||
) | [virtual] |
Reimplemented from zSelector.
Definition at line 216 of file zSelector.cpp.
References _alive, ePlayerNetID::CurrentTeam(), eTeam::GetAllMembers(), zSelector::getAllValid(), and eNetGameObject::Player().
00217 { 00218 // All the members of the team of the player triggering the 00219 // Zone will receive its effect. 00220 00221 gVectorExtra <ePlayerNetID *> allMemberOfTeam; 00222 00223 ePlayerNetID* triggererPlayer = triggerer->Player(); 00224 if (triggererPlayer != 0) { 00225 getAllValid(allMemberOfTeam, triggererPlayer->CurrentTeam()->GetAllMembers(), _alive); 00226 } 00227 00228 return allMemberOfTeam; 00229 }