zEffectorPoint Class Reference

#include <zEffector.h>

Inheritance diagram for zEffectorPoint:

Inheritance graph
[legend]
Collaboration diagram for zEffectorPoint:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 zEffectorPoint ()
 zEffectorPoint (zEffectorPoint const &other)
void operator= (zEffectorPoint const &other)
virtual zEffectorPointcopy (void) const
 overloaded assignment operator
virtual ~zEffectorPoint ()
void setPoint (int p)
int getPoint () const
virtual void effect (gVectorExtra< ePlayerNetID * > &d_calculatedTargets)

Static Public Member Functions

static zEffectorcreate ()

Protected Attributes

int d_score


Detailed Description

Definition at line 93 of file zEffector.h.


Constructor & Destructor Documentation

zEffectorPoint::zEffectorPoint (  )  [inline]

Definition at line 97 of file zEffector.h.

Referenced by copy(), and create().

00097 :zEffector(){ }; //<! Constructor

Here is the caller graph for this function:

zEffectorPoint::zEffectorPoint ( zEffectorPoint const &  other  )  [inline]

Definition at line 98 of file zEffector.h.

00098 :zEffector(other),d_score(other.getPoint()) { };

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

Definition at line 101 of file zEffector.h.

00101 {};


Member Function Documentation

static zEffector* zEffectorPoint::create (  )  [inline, static]

Reimplemented from zEffector.

Definition at line 96 of file zEffector.h.

References zEffectorPoint().

00096 { return new zEffectorPoint(); };

Here is the call graph for this function:

void zEffectorPoint::operator= ( zEffectorPoint const &  other  )  [inline]

Definition at line 99 of file zEffector.h.

References zEffector::operator=().

00099 { this->zEffector::operator=(other); }; 

Here is the call graph for this function:

virtual zEffectorPoint* zEffectorPoint::copy ( void   )  const [inline, virtual]

overloaded assignment operator

Reimplemented from zEffector.

Definition at line 100 of file zEffector.h.

References zEffectorPoint().

00100 { return new zEffectorPoint(*this); };

Here is the call graph for this function:

void zEffectorPoint::setPoint ( int  p  )  [inline]

Definition at line 103 of file zEffector.h.

References d_score.

00103 {d_score = p;};

int zEffectorPoint::getPoint (  )  const [inline]

Definition at line 104 of file zEffector.h.

References d_score.

00104 {return d_score;};

void zEffectorPoint::effect ( gVectorExtra< ePlayerNetID * > &  d_calculatedTargets  )  [virtual]

Reimplemented from zEffector.

Definition at line 117 of file zEffector.cpp.

References d_score, and zEffector::message.

00118 {
00119     gVectorExtra<ePlayerNetID *>::iterator iter;
00120     for(iter = d_calculatedTargets.begin();
00121             iter != d_calculatedTargets.end();
00122             ++iter)
00123     {
00124         //      (*iter)->AddScore(d_score, tOutput(), "$player_lose_suicide");
00125         (*iter)->AddScore(d_score, tOutput(), message);
00126     }
00127 }


Member Data Documentation

int zEffectorPoint::d_score [protected]

Definition at line 108 of file zEffector.h.

Referenced by effect(), getPoint(), and setPoint().


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