#include <RebuildHoleBehavior.h>
Inherits UpdateModule, DieModuleInterface, and RebuildHoleBehaviorInterface.
Static Public Member Functions | |
| static Int | getInterfaceMask (void) |
| static RebuildHoleBehaviorInterface * | getRebuildHoleBehaviorInterfaceFromObject (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 | newWorkerRespawnProcess (Object *existingWorker) |
| start the worker respawn process (again if existingWorker is non NULL) | |
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_workerID |
| id of the worker that will rebuild us | |
| ObjectID | m_reconstructingID |
| ID of the object we're reconstructing. | |
| ObjectID | m_spawnerObjectID |
| Object that was killed and therefore the object that created this hole. | |
| UnsignedInt | m_workerWaitCounter |
| when this reaches zero we spawn a worker after death | |
| const ThingTemplate * | m_workerTemplate |
| template of the worker to make | |
| const ThingTemplate * | m_rebuildTemplate |
| what we are rebuilding | |
Definition at line 75 of file RebuildHoleBehavior.h.
| RebuildHoleBehavior::RebuildHoleBehavior | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 86 of file RebuildHoleBehavior.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 93 of file RebuildHoleBehavior.h.
|
inlinestatic |
Definition at line 90 of file RebuildHoleBehavior.h.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 88 of file RebuildHoleBehavior.h.
|
static |
Helper method to get interface given an object
Definition at line 367 of file RebuildHoleBehavior.cpp.
|
inlinevirtual |
Implements RebuildHoleBehaviorInterface.
Definition at line 105 of file RebuildHoleBehavior.h.
|
inlinevirtual |
Implements RebuildHoleBehaviorInterface.
Definition at line 104 of file RebuildHoleBehavior.h.
|
inlinevirtual |
Implements RebuildHoleBehaviorInterface.
Definition at line 103 of file RebuildHoleBehavior.h.
|
protected |
start the worker respawn process (again if existingWorker is non NULL)
we need to start all the timers and ID ties to make a new worker at the correct time
Definition at line 120 of file RebuildHoleBehavior.cpp.
|
virtual |
Implements DieModuleInterface.
Definition at line 343 of file RebuildHoleBehavior.cpp.
|
virtual |
Implements RebuildHoleBehaviorInterface.
Definition at line 148 of file RebuildHoleBehavior.cpp.
| void RebuildHoleBehavior::transferBombs | ( | Object * | reconstruction | ) |
end startRebuildProcess
Definition at line 165 of file RebuildHoleBehavior.cpp.
|
virtual |
Implements UpdateModule.
Definition at line 188 of file RebuildHoleBehavior.cpp.
|
protected |
what we are rebuilding
Definition at line 120 of file RebuildHoleBehavior.h.
|
protected |
ID of the object we're reconstructing.
Definition at line 116 of file RebuildHoleBehavior.h.
|
protected |
Object that was killed and therefore the object that created this hole.
Definition at line 117 of file RebuildHoleBehavior.h.
|
protected |
id of the worker that will rebuild us
Definition at line 115 of file RebuildHoleBehavior.h.
|
protected |
template of the worker to make
Definition at line 119 of file RebuildHoleBehavior.h.
|
protected |
when this reaches zero we spawn a worker after death
Definition at line 118 of file RebuildHoleBehavior.h.