|
Public Types |
| | Forward |
| | Backward |
| | Stop |
| | StateBits = 3 |
| enum | State {
Forward,
Backward,
Stop,
StateBits = 3
} |
Public Member Functions |
| | DECLARE_CONOBJECT (PathCamera) |
| | PathCamera () |
| | ~PathCamera () |
| void | onEditorEnable () |
| | Called when the editor is activated.
|
| void | onEditorDisable () |
| | Called when the editor is deactivated.
|
| bool | onAdd () |
| | Called when the object is added to the sim.
|
| void | onRemove () |
| | Called when the object is removed from the sim.
|
| bool | onNewDataBlock (GameBaseData *dptr) |
| | Called when a new datablock is set.
|
| void | onNode (S32 node) |
| void | processTick (const Move *) |
| | Processes a move event and updates object state once every 32 milliseconds.
|
| void | interpolateTick (F32 dt) |
| | Interpolates between tick events.
|
| void | getCameraTransform (F32 *pos, MatrixF *mat) |
| | Gets the camera transform.
|
| U32 | packUpdate (NetConnection *, U32 mask, BitStream *stream) |
| | Instructs this object to pack its state for transfer over the network.
|
| void | unpackUpdate (NetConnection *, BitStream *stream) |
| | Instructs this object to read state data previously packed with packUpdate.
|
| void | reset (F32 speed=1) |
| void | pushFront (CameraSpline::Knot *knot) |
| void | pushBack (CameraSpline::Knot *knot) |
| void | popFront () |
| void | setPosition (F32 pos) |
| void | setTarget (F32 pos) |
| void | setState (State s) |
Static Public Member Functions |
| static void | initPersistFields () |
| | Register dynamic fields in a subclass of ConsoleObject.
|
| static void | consoleInit () |
| | Register global constant variables and do other one-time initialization tasks in a subclass of ConsoleObject.
|
Private Types |
| typedef ShapeBase | Parent |
| | WindowMask = Parent::NextFreeMask |
| | PositionMask = Parent::NextFreeMask + 1 |
| | TargetMask = Parent::NextFreeMask + 2 |
| | StateMask = Parent::NextFreeMask + 3 |
| | NextFreeMask = Parent::NextFreeMask << 1 |
| | NodeWindow = 128 |
| enum | MaskBits {
WindowMask = Parent::NextFreeMask,
PositionMask = Parent::NextFreeMask + 1,
TargetMask = Parent::NextFreeMask + 2,
StateMask = Parent::NextFreeMask + 3,
NextFreeMask = Parent::NextFreeMask << 1
} |
| enum | Constants { NodeWindow = 128
} |
Private Member Functions |
| void | interpolateMat (F32 pos, MatrixF *mat) |
| void | advancePosition (S32 ms) |
Private Attributes |
| StateDelta | delta |
| PathCameraData * | mDataBlock |
| | Datablock.
|
| CameraSpline | mSpline |
| S32 | mNodeBase |
| S32 | mNodeCount |
| F32 | mPosition |
| int | mState |
| F32 | mTarget |
| bool | mTargetSet |
Classes |
| struct | StateDelta |