FlyingVehicle

Engine/source/T3D/vehicles/flyingVehicle.h

More...

Classes:

Private Types

enum
Jets {
  BackActivate 
  BackMaintain 
  BottomActivate 
  BottomMaintain 
  JetAnimCount 
}
enum
NetMaskBits {
  InitMask = BIT(0)
  HoverHeight = BIT(1)
}
enum
ThrustDirection {
  ThrustForward 
  ThrustBackward 
  ThrustDown 
  NumThrustDirections 
  NumThrustBits = 3
}
Parent 

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)

Public Functions

Advances simulation time for animations.

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

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

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

Read data written with writePacketData() and update the object state.

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

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

Public Static Functions

initPersistFields()