zSelectorAllDead Class Reference

#include <zSelector.h>

Inheritance diagram for zSelectorAllDead:

Inheritance graph
[legend]
Collaboration diagram for zSelectorAllDead:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

static zSelectorcreate ()


Detailed Description

Definition at line 273 of file zSelector.h.


Constructor & Destructor Documentation

zSelectorAllDead::zSelectorAllDead (  ) 

Definition at line 637 of file zSelector.cpp.

Referenced by copy(), and create().

00637                                   :
00638         zSelector()
00639 { }

Here is the caller graph for this function:

zSelectorAllDead::zSelectorAllDead ( zSelectorAllDead const &  other  ) 

Definition at line 641 of file zSelector.cpp.

00641                                                                :
00642         zSelector(other)
00643 { }

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

Definition at line 281 of file zSelector.h.

00281 {};


Member Function Documentation

zSelector * zSelectorAllDead::create (  )  [static]

Reimplemented from zSelector.

Definition at line 632 of file zSelector.cpp.

References zSelectorAllDead().

00633 {
00634     return new zSelectorAllDead();
00635 }

Here is the call graph for this function:

void zSelectorAllDead::operator= ( zSelectorAllDead const &  other  ) 

overloaded assignment operator

Definition at line 645 of file zSelector.cpp.

References zSelector::operator=().

00646 {
00647     this->zSelector::operator=(other);
00648 }

Here is the call graph for this function:

zSelectorAllDead * zSelectorAllDead::copy ( void   )  const [virtual]

Reimplemented from zSelector.

Definition at line 650 of file zSelector.cpp.

References zSelectorAllDead().

00651 {
00652     return new zSelectorAllDead(*this);
00653 }

Here is the call graph for this function:

gVectorExtra< ePlayerNetID * > zSelectorAllDead::select ( gVectorExtra< nNetObjectID > &  owners,
gVectorExtra< nNetObjectID > &  teamOwners,
gCycle triggerer 
) [virtual]

Reimplemented from zSelector.

Definition at line 655 of file zSelector.cpp.

References _dead, zSelector::getAllValid(), GrowingArrayBase::Len(), and se_PlayerNetIDs.

00656 {
00657     // All dead players receives the effect.
00658 
00659     gVectorExtra<ePlayerNetID *> everybody;
00660     for (int i=0; i<se_PlayerNetIDs.Len(); i++) {
00661         everybody.push_back( se_PlayerNetIDs(i) );
00662     }
00663 
00664     gVectorExtra<ePlayerNetID *> everybodyDead;
00665     getAllValid(everybodyDead, everybody, _dead);
00666 
00667     return everybodyDead;
00668 }

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