zEffectorCycleAcceleration Class Reference

#include <zEffector.h>

Inheritance diagram for zEffectorCycleAcceleration:

Inheritance graph
[legend]
Collaboration diagram for zEffectorCycleAcceleration:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 zEffectorCycleAcceleration ()
virtual
zEffectorCycleAcceleration
copy (void) const
 overloaded assignment operator
virtual ~zEffectorCycleAcceleration ()
virtual void effect (gVectorExtra< ePlayerNetID * > &d_calculatedTargets)
virtual void setValue (tFunction const &accel)

Static Public Member Functions

static zEffectorcreate ()

Protected Attributes

tFunction acceleration


Detailed Description

Definition at line 137 of file zEffector.h.


Constructor & Destructor Documentation

zEffectorCycleAcceleration::zEffectorCycleAcceleration (  )  [inline]

Definition at line 141 of file zEffector.h.

Referenced by copy(), and create().

00141 :zEffector(),acceleration(1.0, 1.0) { }; //<! Constructor

Here is the caller graph for this function:

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

Definition at line 145 of file zEffector.h.

00145 {};


Member Function Documentation

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

Reimplemented from zEffector.

Definition at line 140 of file zEffector.h.

References zEffectorCycleAcceleration().

00140 { return new zEffectorCycleAcceleration(); };

Here is the call graph for this function:

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

overloaded assignment operator

Reimplemented from zEffector.

Definition at line 144 of file zEffector.h.

References zEffectorCycleAcceleration().

00144 { return new zEffectorCycleAcceleration(*this); };

Here is the call graph for this function:

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

Reimplemented from zEffector.

Definition at line 164 of file zEffector.cpp.

References acceleration, and tFunction::GetOffset().

00165 {
00166     gVectorExtra<ePlayerNetID *>::iterator iter;
00167     for(iter = d_calculatedTargets.begin();
00168             iter != d_calculatedTargets.end();
00169             ++iter)
00170     {
00171         static_cast<gCycle *>((*iter)->Object())->AddZoneAcceleration(acceleration.GetOffset());
00172     }
00173 }

Here is the call graph for this function:

virtual void zEffectorCycleAcceleration::setValue ( tFunction const &  accel  )  [inline, virtual]

Definition at line 149 of file zEffector.h.

References acceleration.

00149 { acceleration = accel; };


Member Data Documentation

tFunction zEffectorCycleAcceleration::acceleration [protected]

Definition at line 149 of file zEffector.h.

Referenced by effect(), and setValue().


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