HoverVehicle

Engine/source/T3D/vehicles/hoverVehicle.h

More...

Classes:

Protected Types

enum
Jets {
  BackActivate 
  BackMaintain 
  JetAnimCount 
}
enum
ThrustDirection {
  ThrustForward 
  ThrustBackward 
  ThrustDown 
  NumThrustDirections 
  NumThrustBits = 3
}

Private Types

Parent 

Protected Static Attributes

sJetActivation [NumThrustDirections]
const char *
sJetSequence [HoverVehicle::JetAnimCount]

Protected Functions

bool

Called when the object is added to the sim.

bool
onNewDataBlock(GameBaseData * dptr, bool reload)

Called when a new datablock is set.

Called when the object is removed from the sim.

updateEmitter(bool active, F32 dt, ParticleEmitterData * emitter, S32 idx, S32 count)

Public Functions

Advances simulation time for animations.

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Instructs this object to pack its state for transfer over the network.

Instructs this object to read state data previously packed with packUpdate.

Detailed Description

Protected Types

Jets

Enumerator

BackActivate
BackMaintain
JetAnimCount
ThrustDirection

Enumerator

ThrustForward
ThrustBackward
ThrustDown
NumThrustDirections
NumThrustBits = 3

Private Types

typedef Vehicle Parent 

Private Attributes

HoverVehicleData * mDataBlock 
SimObjectPtr< ParticleEmitter > mDustTrailEmitter 

Protected Attributes

bool mBackMaintainOn 
SFXSource * mEngineSound 
bool mFloating 
SFXSource * mFloatSound 
F32 mForwardThrust 
SimObjectPtr< ParticleEmitter > mJetEmitter [HoverVehicleData::MaxJetNodes]
S32 mJetSeq [JetAnimCount]
SFXSource * mJetSound 
TSThread * mJetThread [JetAnimCount]
F32 mLeftThrust 
F32 mReverseThrust 
F32 mRightThrust 
ThrustDirection mThrustDirection 
F32 mThrustLevel 

Protected Static Attributes

JetActivation sJetActivation [NumThrustDirections]
const char * sJetSequence [HoverVehicle::JetAnimCount]

Protected Functions

getBaseStabilizerLength()

getCollisionMask()

Reimplemented from: Vehicle

onAdd()

Reimplemented from: RigidShape

onNewDataBlock(GameBaseData * dptr, bool reload)

Reimplemented from: Vehicle

onRemove()

Reimplemented from: RigidShape

updateDustTrail(F32 dt)

updateEmitter(bool active, F32 dt, ParticleEmitterData * emitter, S32 idx, S32 count)

updateForces(F32 )

Reimplemented from: Vehicle

updateJet(F32 dt)

updateMove(const Move * move)

Reimplemented from: Vehicle

Public Functions

HoverVehicle()

~HoverVehicle()

advanceTime(F32 dt)

Reimplemented from: RigidShape

DECLARE_CONOBJECT(HoverVehicle )

packUpdate(NetConnection * conn, U32 mask, BitStream * stream)

Reimplemented from: RigidShape

unpackUpdate(NetConnection * conn, BitStream * stream)

Reimplemented from: RigidShape