zSelectorAll Class Reference

#include <zSelector.h>

Inheritance diagram for zSelectorAll:

Inheritance graph
[legend]
Collaboration diagram for zSelectorAll:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

static zSelectorcreate ()


Detailed Description

Definition at line 130 of file zSelector.h.


Constructor & Destructor Documentation

zSelectorAll::zSelectorAll (  ) 

Definition at line 239 of file zSelector.cpp.

Referenced by copy(), and create().

00239                           :
00240         zSelector()
00241 { }

Here is the caller graph for this function:

zSelectorAll::zSelectorAll ( zSelectorAll const &  other  ) 

Definition at line 243 of file zSelector.cpp.

00243                                                    :
00244         zSelector(other)
00245 { }

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

Definition at line 138 of file zSelector.h.

00138 {};


Member Function Documentation

zSelector * zSelectorAll::create (  )  [static]

Reimplemented from zSelector.

Definition at line 234 of file zSelector.cpp.

References zSelectorAll().

00235 {
00236     return new zSelectorAll();
00237 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:

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 }

Here is the call graph for this function:

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 }

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:01:50 2008 for Armagetron Advanced by  doxygen 1.5.4