FlyingVehicle
Engine/source/T3D/vehicles/flyingVehicle.h
Classes:
Private Types
Jets { BackActivate BackMaintain BottomActivate BottomMaintain JetAnimCount }
NetMaskBits { InitMask = BIT(0) HoverHeight = BIT(1) }
ThrustDirection { ThrustForward ThrustBackward ThrustDown NumThrustDirections NumThrustBits = 3 }
Parent
Private Attributes
bool
bool
bool
mJetEmitter [FlyingVehicleData::MaxJetNodes]
TSThread *
mJetThread [JetAnimCount]
ThrustDirection
Private Static Attributes
JetActivation
sJetActivation [NumThrustDirections]
const char *
sJetSequence [FlyingVehicle::JetAnimCount]
Private Functions
bool
onNewDataBlock(GameBaseData * dptr, bool reload)
Called when a new datablock is set.
updateEmitter(bool active, F32 dt, ParticleEmitterData * emitter, S32 idx, S32 count)
updateEngineSound(F32 level)
updateMove(const Move * move)
Public Functions
advanceTime(F32 dt)
Advances simulation time for animations.
bool
onAdd()
Called when the object is added to the sim.
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Instructs this object to pack its state for transfer over the network.
readPacketData(GameConnection * conn, BitStream * stream)
Read data written with writePacketData() and update the object state.
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
useCreateHeight(bool val)
writePacketData(GameConnection * conn, BitStream * stream)
Write state information necessary to perform client side prediction of an object.
Public Static Functions
Detailed Description
Private Types
Jets
Enumerator
- BackActivate
- BackMaintain
- BottomActivate
- BottomMaintain
- JetAnimCount
NetMaskBits
Enumerator
- InitMask = BIT(0)
- HoverHeight = BIT(1)
ThrustDirection
Enumerator
- ThrustForward
- ThrustBackward
- ThrustDown
- NumThrustDirections
- NumThrustBits = 3
typedef Vehicle Parent
Private Attributes
bool createHeightOn
bool mBackMaintainOn
bool mBottomMaintainOn
F32 mCeilingFactor
FlyingVehicleData * mDataBlock
SFXSource * mEngineSound
SimObjectPtr< ParticleEmitter > mJetEmitter [FlyingVehicleData::MaxJetNodes]
S32 mJetSeq [JetAnimCount]
SFXSource * mJetSound
TSThread * mJetThread [JetAnimCount]
Point2F mThrust
ThrustDirection mThrustDirection
Private Static Attributes
JetActivation sJetActivation [NumThrustDirections]
const char * sJetSequence [FlyingVehicle::JetAnimCount]
Private Functions
getCollisionMask()
Reimplemented from: Vehicle
getHeight()
onNewDataBlock(GameBaseData * dptr, bool reload)
Reimplemented from: Vehicle
updateEmitter(bool active, F32 dt, ParticleEmitterData * emitter, S32 idx, S32 count)
updateEngineSound(F32 level)
updateForces(F32 )
Reimplemented from: Vehicle
updateJet(F32 dt)
updateMove(const Move * move)
Reimplemented from: Vehicle
Public Functions
FlyingVehicle()
~FlyingVehicle()
advanceTime(F32 dt)
Reimplemented from: RigidShape
DECLARE_CONOBJECT(FlyingVehicle )
onAdd()
Reimplemented from: RigidShape
onRemove()
Reimplemented from: RigidShape
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Reimplemented from: RigidShape
readPacketData(GameConnection * conn, BitStream * stream)
Reimplemented from: RigidShape
unpackUpdate(NetConnection * conn, BitStream * stream)
Reimplemented from: RigidShape
useCreateHeight(bool val)
writePacketData(GameConnection * conn, BitStream * stream)
Reimplemented from: RigidShape