zSelectorTeam Class Reference

#include <zSelector.h>

Inheritance diagram for zSelectorTeam:

Inheritance graph
[legend]
Collaboration diagram for zSelectorTeam:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 zSelectorTeam ()
 zSelectorTeam (zSelectorTeam const &other)
void operator= (zSelectorTeam const &other)
 overloaded assignment operator
virtual zSelectorTeamcopy (void) const
virtual ~zSelectorTeam ()
gVectorExtra< ePlayerNetID * > select (gVectorExtra< nNetObjectID > &owners, gVectorExtra< nNetObjectID > &teamOwners, gCycle *triggerer)

Static Public Member Functions

static zSelectorcreate ()


Detailed Description

Definition at line 114 of file zSelector.h.


Constructor & Destructor Documentation

zSelectorTeam::zSelectorTeam (  ) 

Definition at line 198 of file zSelector.cpp.

Referenced by copy(), and create().

00198                             :
00199         zSelector()
00200 { }

Here is the caller graph for this function:

zSelectorTeam::zSelectorTeam ( zSelectorTeam const &  other  ) 

Definition at line 202 of file zSelector.cpp.

00202                                                       :
00203         zSelector(other)
00204 { }

virtual zSelectorTeam::~zSelectorTeam (  )  [inline, virtual]

Definition at line 122 of file zSelector.h.

00122 {};


Member Function Documentation

zSelector * zSelectorTeam::create (  )  [static]

Reimplemented from zSelector.

Definition at line 193 of file zSelector.cpp.

References zSelectorTeam().

00194 {
00195     return new zSelectorTeam();
00196 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:02:05 2008 for Armagetron Advanced by  doxygen 1.5.4