#include <HelicopterSlowDeathUpdate.h>
Inherits SlowDeathBehavior.
Protected Attributes | |
| Int | m_orbitDirection |
| -1 or +1 ... use ORBIT_DIRECTION_LEFT/RIGHT | |
| Real | m_forwardAngle |
| Real | m_forwardSpeed |
| the speed we're travelling forward in our spiral orbit | |
| Real | m_selfSpin |
| rads per frame that we change our facing direction | |
| Bool | m_selfSpinTowardsMax |
| TRUE when our self spin rate is increasing towards the MaxSelfSpin. | |
| UnsignedInt | m_lastSelfSpinUpdateFrame |
| frame we last updated the self spin on | |
| UnsignedInt | m_bladeFlyOffFrame |
| frame we throw the blade off at | |
| UnsignedInt | m_hitGroundFrame |
| frame we hit the ground on | |
| AudioEventRTS | m_deathSound |
| Sound played during death sequence. | |
Additional Inherited Members | |
Static Public Member Functions inherited from SlowDeathBehavior | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from UpdateModule | |
| static Int | getInterfaceMask () |
Static Public Member Functions inherited from BehaviorModule | |
| static Int | getInterfaceMask () |
| static ModuleType | getModuleType () |
Static Public Member Functions inherited from Module | |
| static ModuleData * | friend_newModuleData (INI *ini) |
Protected Member Functions inherited from SlowDeathBehavior | |
| void | doPhaseStuff (SlowDeathPhaseType sdphase) |
| Bool | isSlowDeathActivated () const |
| UnsignedInt | getDestructionFrame () const |
Protected Member Functions inherited from UpdateModule | |
| void | setWakeFrame (Object *obj, UpdateSleepTime wakeDelay) |
| UpdateSleepTime | getWakeFrame () const |
| virtual SleepyUpdatePhase | getUpdatePhase () const |
| UpdateSleepTime | frameToSleepTime (UnsignedInt frame1, UnsignedInt frame2=FOREVER, UnsignedInt frame3=FOREVER, UnsignedInt frame4=FOREVER) |
Protected Member Functions inherited from BehaviorModule | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
Protected Member Functions inherited from ObjectModule | |
| Object * | getObject () |
| const Object * | getObject () const |
Protected Member Functions inherited from Module | |
| const ModuleData * | getModuleData () const |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Definition at line 86 of file HelicopterSlowDeathUpdate.h.
| HelicopterSlowDeathBehavior::HelicopterSlowDeathBehavior | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 160 of file HelicopterSlowDeathUpdate.cpp.
|
virtual |
begin the slow death cycle
Reimplemented from SlowDeathBehavior.
Definition at line 184 of file HelicopterSlowDeathUpdate.cpp.
|
virtual |
Reimplemented from SlowDeathBehavior.
Definition at line 285 of file HelicopterSlowDeathUpdate.cpp.
|
protected |
frame we throw the blade off at
Definition at line 109 of file HelicopterSlowDeathUpdate.h.
|
protected |
Sound played during death sequence.
Definition at line 113 of file HelicopterSlowDeathUpdate.h.
|
protected |
angle of the direction "forward" we want to move in our downspin which is independent of the actual direction angle of the object
Definition at line 103 of file HelicopterSlowDeathUpdate.h.
|
protected |
the speed we're travelling forward in our spiral orbit
Definition at line 105 of file HelicopterSlowDeathUpdate.h.
|
protected |
frame we hit the ground on
Definition at line 110 of file HelicopterSlowDeathUpdate.h.
|
protected |
frame we last updated the self spin on
Definition at line 108 of file HelicopterSlowDeathUpdate.h.
|
protected |
-1 or +1 ... use ORBIT_DIRECTION_LEFT/RIGHT
Definition at line 102 of file HelicopterSlowDeathUpdate.h.
|
protected |
rads per frame that we change our facing direction
Definition at line 106 of file HelicopterSlowDeathUpdate.h.
|
protected |
TRUE when our self spin rate is increasing towards the MaxSelfSpin.
Definition at line 107 of file HelicopterSlowDeathUpdate.h.