#include <RailedTransportDockUpdate.h>
Inherits DockUpdate, and RailedTransportDockUpdateInterface.
Protected Member Functions | |
| void | doPullInDocking (void) |
| pull docking objects into us | |
| void | doPushOutDocking (void) |
| push unloading objects out of us | |
| void | unloadNext (void) |
| start the "next" object we have inside us coming out | |
Protected Member Functions inherited from DockUpdate | |
| void | loadDockPositions () |
| load all the dock positions | |
| Coord3D | computeApproachPosition (Int positionIndex, Object *forWhom) |
| Do a smart lookup of this bone position. | |
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_dockingObjectID |
| object docking with us | |
| Real | m_pullInsideDistancePerFrame |
| when docking, pull object inside this much each frame | |
| ObjectID | m_unloadingObjectID |
| object that is currently unloading | |
| Real | m_pushOutsideDistancePerFrame |
| when unloading, push object outside this much frame | |
| Int | m_unloadCount |
| count used to govern unloading 1 or all objects | |
Protected Attributes inherited from DockUpdate | |
| Coord3D | m_enterPosition |
| Coord3D | m_dockPosition |
| Coord3D | m_exitPosition |
| Int | m_numberApproachPositions |
| Int | m_numberApproachPositionBones |
| Bool | m_positionsLoaded |
| FALSE until we have loaded all the docking positions. | |
| VecCoord3D | m_approachPositions |
| ObjectIDVector | m_approachPositionOwners |
| Who is in or at least reserved each spot. | |
| BoolVector | m_approachPositionReached |
| Which positions have actually been reached. | |
| ObjectID | m_activeDocker |
| we could expand this to multiple dock paths since we always get docker in our methods | |
| Bool | m_dockerInside |
| This is true while our active docker is between Enter and Exit. This is shorter than activeDocker's lifetime as it doesn't include approach to enter. | |
| Bool | m_dockCrippled |
| Has game logic set me as crippled? | |
| Bool | m_dockOpen |
| Is the dock open for dockers. | |
Additional Inherited Members | |
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) |
Definition at line 70 of file RailedTransportDockUpdate.h.
| RailedTransportDockUpdate::RailedTransportDockUpdate | ( | Thing * | thing, |
| const ModuleData * | moduleData ) |
Definition at line 84 of file RailedTransportDockUpdate.cpp.
The dock action callback, return FALSE when done docking
Implements DockUpdateInterface.
Definition at line 125 of file RailedTransportDockUpdate.cpp.
|
protected |
pull docking objects into us
If we have an object recorded as currently docking with us, pull that object inside and when it is inside, contain it
Definition at line 250 of file RailedTransportDockUpdate.cpp.
|
protected |
push unloading objects out of us
If we have an object recorded as being pushed out of us then do that here
Definition at line 337 of file RailedTransportDockUpdate.cpp.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 89 of file RailedTransportDockUpdate.h.
|
inlinevirtual |
Reimplemented from BehaviorModule.
Definition at line 83 of file RailedTransportDockUpdate.h.
Is clear to enter the railed transport
Reimplemented from DockUpdate.
Definition at line 183 of file RailedTransportDockUpdate.cpp.
|
virtual |
Is anything currently loading or unloading
Implements RailedTransportDockUpdateInterface.
Definition at line 204 of file RailedTransportDockUpdate.cpp.
|
virtual |
Start the unload process
Implements RailedTransportDockUpdateInterface.
Definition at line 217 of file RailedTransportDockUpdate.cpp.
|
protected |
start the "next" object we have inside us coming out
Start the next object contained by us as "unloading and coming out"
Definition at line 452 of file RailedTransportDockUpdate.cpp.
|
virtual |
Unload a single individual only
Implements RailedTransportDockUpdateInterface.
Definition at line 233 of file RailedTransportDockUpdate.cpp.
|
virtual |
In charge of lifting dock restriction for one registered as Approached if all is ready.
Reimplemented from DockUpdate.
Definition at line 105 of file RailedTransportDockUpdate.cpp.
|
protected |
object docking with us
Definition at line 104 of file RailedTransportDockUpdate.h.
|
protected |
when docking, pull object inside this much each frame
Definition at line 105 of file RailedTransportDockUpdate.h.
|
protected |
when unloading, push object outside this much frame
Definition at line 108 of file RailedTransportDockUpdate.h.
|
protected |
count used to govern unloading 1 or all objects
Definition at line 110 of file RailedTransportDockUpdate.h.
|
protected |
object that is currently unloading
Definition at line 107 of file RailedTransportDockUpdate.h.