#include <zEffector.h>
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 zEffector * | create () |
Protected Attributes | |
tFunction | acceleration |
Definition at line 137 of file zEffector.h.
zEffectorCycleAcceleration::zEffectorCycleAcceleration | ( | ) | [inline] |
Definition at line 141 of file zEffector.h.
Referenced by copy(), and create().
00141 :zEffector(),acceleration(1.0, 1.0) { }; //<! Constructor
virtual zEffectorCycleAcceleration::~zEffectorCycleAcceleration | ( | ) | [inline, virtual] |
static zEffector* zEffectorCycleAcceleration::create | ( | ) | [inline, static] |
Reimplemented from zEffector.
Definition at line 140 of file zEffector.h.
References zEffectorCycleAcceleration().
00140 { return new zEffectorCycleAcceleration(); };
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); };
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 }
virtual void zEffectorCycleAcceleration::setValue | ( | tFunction const & | accel | ) | [inline, virtual] |
Definition at line 149 of file zEffector.h.
References acceleration.
00149 { acceleration = accel; };
tFunction zEffectorCycleAcceleration::acceleration [protected] |