zEffectGroup Class Reference

#include <zEffectGroup.h>

Collaboration diagram for zEffectGroup:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 zEffectGroup ()
 zEffectGroup (gVectorExtra< nNetObjectID > const owners, gVectorExtra< nNetObjectID > const teamOwners)
 zEffectGroup (zEffectGroup const &other)
 ~zEffectGroup ()
void operator= (zEffectGroup const &other)
void addValidator (zValidatorPtr _validator)
bool isValidUser (gCycle *possibleUser)
gVectorExtra< ePlayerNetID * > getCalculatedTarget (gCycle *triggerer)
void apply (Triggerer target, REAL &time, const tPolynomial< nMessage > &tp)
 reacts on objects interacting with the zone
gCyclecb_PossibleUser (void)
 Gets the used rubber for the currently watched cycle.
gVectorExtra< nNetObjectIDcb_Owners (void)
gVectorExtra< nNetObjectIDcb_TeamOwners (void)
gVectorExtra< ePlayerNetID * > cb_Targets (void)

Protected Attributes

std::vector< zValidatorPtrvalidators
gVectorExtra< nNetObjectIDd_owners
gVectorExtra< nNetObjectIDd_teamOwners
gVectorExtra< ePlayerNetID * > d_calculatedTargets


Detailed Description

Definition at line 41 of file zEffectGroup.h.


Constructor & Destructor Documentation

zEffectGroup::zEffectGroup (  ) 

zEffectGroup::zEffectGroup ( gVectorExtra< nNetObjectID > const   owners,
gVectorExtra< nNetObjectID > const   teamOwners 
)

Definition at line 30 of file zEffectGroup.cpp.

00030                                                                                                                   :
00031         validators(),
00032         //      monitorInfluences(),
00033         //      zoneInfluences(),
00034         d_owners(owners),
00035         d_teamOwners(teamOwners),
00036         d_calculatedTargets()
00037 { }

zEffectGroup::zEffectGroup ( zEffectGroup const &  other  ) 

Definition at line 39 of file zEffectGroup.cpp.

00039                                                     :
00040         validators(other.validators),
00041         //      monitorInfluences(other.monitorInfluences),
00042         //      zoneInfluences(other.zoneInfluences),
00043         d_owners(other.d_owners),
00044         d_teamOwners(other.d_teamOwners),
00045         d_calculatedTargets(other.d_calculatedTargets)
00046 { }

zEffectGroup::~zEffectGroup (  ) 

Definition at line 48 of file zEffectGroup.cpp.

00049 { }


Member Function Documentation

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

Definition at line 51 of file zEffectGroup.cpp.

References d_calculatedTargets, d_owners, d_teamOwners, and validators.

00052 {
00053     if (this != &other) {
00054         validators = other.validators;
00055         d_owners = other.d_owners;
00056         d_teamOwners = other.d_teamOwners;
00057         d_calculatedTargets = other.d_calculatedTargets;
00058     }
00059 }

void zEffectGroup::addValidator ( zValidatorPtr  _validator  )  [inline]

Definition at line 50 of file zEffectGroup.h.

References validators.

00050                                                 {
00051         validators.push_back( _validator );
00052     };

bool zEffectGroup::isValidUser ( gCycle possibleUser  ) 

gVectorExtra<ePlayerNetID *> zEffectGroup::getCalculatedTarget ( gCycle triggerer  ) 

void zEffectGroup::apply ( Triggerer  target,
REAL time,
const tPolynomial< nMessage > &  tp 
)

reacts on objects interacting with the zone

Definition at line 61 of file zEffectGroup.cpp.

References d_owners, d_teamOwners, and validators.

00062 {
00063     std::vector<zValidatorPtr>::const_iterator iter;
00064     for (iter=validators.begin();
00065             iter!=validators.end();
00066             ++iter)
00067     {
00068         (*iter)->validate(d_owners, d_teamOwners, possibleUser, tp);
00069     }
00070 }

gCycle* zEffectGroup::cb_PossibleUser ( void   ) 

Gets the used rubber for the currently watched cycle.

gVectorExtra< nNetObjectID > zEffectGroup::cb_Owners ( void   ) 

gVectorExtra< nNetObjectID > zEffectGroup::cb_TeamOwners ( void   ) 

gVectorExtra<ePlayerNetID *> zEffectGroup::cb_Targets ( void   ) 


Member Data Documentation

std::vector<zValidatorPtr> zEffectGroup::validators [protected]

Definition at line 66 of file zEffectGroup.h.

Referenced by addValidator(), apply(), and operator=().

gVectorExtra< nNetObjectID > zEffectGroup::d_owners [protected]

Definition at line 68 of file zEffectGroup.h.

Referenced by apply(), and operator=().

gVectorExtra< nNetObjectID > zEffectGroup::d_teamOwners [protected]

Definition at line 69 of file zEffectGroup.h.

Referenced by apply(), and operator=().

gVectorExtra<ePlayerNetID *> zEffectGroup::d_calculatedTargets [protected]

Definition at line 71 of file zEffectGroup.h.

Referenced by operator=().


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