#include <BridgeBehavior.h>
Inherits UpdateModule, BridgeBehaviorInterface, DamageModuleInterface, and DieModuleInterface.
Static Public Member Functions | |
| static Int | getInterfaceMask (void) |
| static BridgeBehaviorInterface * | getBridgeBehaviorInterfaceFromObject (Object *obj) |
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 | |
| void | resolveFX (void) |
| void | handleObjectsOnBridgeOnDie (void) |
| void | doAreaEffects (TerrainRoadType *bridgeTemplate, Bridge *bridge, const ObjectCreationList *ocl, const FXList *fx) |
| void | setScaffoldData (Object *obj, Real *angle, Real *sunkenHeight, const Coord3D *riseToPos, const Coord3D *buildPos, const Coord3D *bridgeCenter) |
| void | getRandomSurfacePosition (TerrainRoadType *bridgeTemplate, const BridgeInfo *bridgeInfo, Coord3D *pos) |
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 |
Protected Attributes | |
| ObjectID | m_towerID [BRIDGE_MAX_TOWERS] |
| the towers that are a part of us | |
| const ObjectCreationList * | m_damageToOCL [BODYDAMAGETYPE_COUNT][MAX_BRIDGE_BODY_FX] |
| const FXList * | m_damageToFX [BODYDAMAGETYPE_COUNT][MAX_BRIDGE_BODY_FX] |
| AudioEventRTS | m_damageToSound [BODYDAMAGETYPE_COUNT] |
| const ObjectCreationList * | m_repairToOCL [BODYDAMAGETYPE_COUNT][MAX_BRIDGE_BODY_FX] |
| const FXList * | m_repairToFX [BODYDAMAGETYPE_COUNT][MAX_BRIDGE_BODY_FX] |
| AudioEventRTS | m_repairToSound [BODYDAMAGETYPE_COUNT] |
| Bool | m_fxResolved |
| TRUE until we've loaded our fx pointers and sounds. | |
| Bool | m_scaffoldPresent |
| TRUE when we have repair scaffolding visible. | |
| ObjectIDList | m_scaffoldObjectIDList |
| list of scaffold object IDs | |
| UnsignedInt | m_deathFrame |
| frame we died on | |
Definition at line 117 of file BridgeBehavior.h.
| BridgeBehavior::BridgeBehavior | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 229 of file BridgeBehavior.cpp.
|
virtual |
create scaffolding around bridge
Start the bridge repair scaffolding. If we already have scaffolding this call is ignored
Implements BridgeBehaviorInterface.
Definition at line 1022 of file BridgeBehavior.cpp.
|
protected |
Definition at line 564 of file BridgeBehavior.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 135 of file BridgeBehavior.h.
|
static |
Get bridge behavior interface
Definition at line 290 of file BridgeBehavior.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 139 of file BridgeBehavior.h.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 147 of file BridgeBehavior.h.
|
inlinestatic |
Definition at line 132 of file BridgeBehavior.h.
|
protected |
Pick a random surface spot on the bridge surface
Definition at line 516 of file BridgeBehavior.cpp.
|
virtual |
retrive one of our towers
Implements BridgeBehaviorInterface.
Definition at line 414 of file BridgeBehavior.cpp.
|
inlinevirtual |
Reimplemented from UpdateModule.
Definition at line 151 of file BridgeBehavior.h.
|
protected |
Definition at line 870 of file BridgeBehavior.cpp.
|
virtual |
is scaffold in motion
Is any of the scaffolding in motion
Implements BridgeBehaviorInterface.
Definition at line 1338 of file BridgeBehavior.cpp.
|
inlinevirtual |
Implements BridgeBehaviorInterface.
Definition at line 161 of file BridgeBehavior.h.
|
virtual |
state change callback
Implements DamageModuleInterface.
Definition at line 611 of file BridgeBehavior.cpp.
|
virtual |
damage callback
Implements DamageModuleInterface.
Definition at line 433 of file BridgeBehavior.cpp.
|
virtual |
onDelete() will be called on all modules contained by an object or drawable before the actual deletion of each of those modules happens
Reimplemented from Module.
Definition at line 315 of file BridgeBehavior.cpp.
|
virtual |
Implements DieModuleInterface.
Definition at line 846 of file BridgeBehavior.cpp.
|
virtual |
healing callback
Implements DamageModuleInterface.
Definition at line 477 of file BridgeBehavior.cpp.
|
virtual |
remove scaffolding around bridge
Remove the bridge scaffolding. If we don't have any then this call is ignored
Implements BridgeBehaviorInterface.
Definition at line 1286 of file BridgeBehavior.cpp.
|
protected |
Definition at line 325 of file BridgeBehavior.cpp.
|
protected |
Set all the position, angle, and speed data we need to for a single scaffold object
Definition at line 959 of file BridgeBehavior.cpp.
|
virtual |
connect tower to us
Implements BridgeBehaviorInterface.
Definition at line 392 of file BridgeBehavior.cpp.
|
virtual |
Implements UpdateModule.
Definition at line 706 of file BridgeBehavior.cpp.
|
protected |
Definition at line 184 of file BridgeBehavior.h.
|
protected |
Definition at line 183 of file BridgeBehavior.h.
|
protected |
Definition at line 185 of file BridgeBehavior.h.
|
protected |
frame we died on
Definition at line 197 of file BridgeBehavior.h.
|
protected |
TRUE until we've loaded our fx pointers and sounds.
Definition at line 192 of file BridgeBehavior.h.
|
protected |
Definition at line 189 of file BridgeBehavior.h.
|
protected |
Definition at line 188 of file BridgeBehavior.h.
|
protected |
Definition at line 190 of file BridgeBehavior.h.
|
protected |
list of scaffold object IDs
Definition at line 195 of file BridgeBehavior.h.
|
protected |
TRUE when we have repair scaffolding visible.
Definition at line 194 of file BridgeBehavior.h.
|
protected |
the towers that are a part of us
Definition at line 180 of file BridgeBehavior.h.