afxMagicMissile
Engine/source/afx/afxMagicMissile.h
Public Types
UpdateMasks { GuideMask = Parent::NextFreeMask << 0 LaunchMask = Parent::NextFreeMask << 1 ImpactMask = Parent::NextFreeMask << 2 NextFreeMask = Parent::NextFreeMask << 3 }
Private Types
Parent
Protected Attributes
bool
bool
bool
bool
bool
bool
Protected Functions
interpolateTick(F32 delta)
Interpolates between tick events.
bool
onAdd()
Called when the object is added to the sim.
bool
onNewDataBlock(GameBaseData * dptr, bool reload)
Called when a new datablock is set.
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Instructs this object to pack its state for transfer over the network.
bool
pointInWater(const Point3F & point)
prepBatchRender(SceneRenderState * state)
prepRenderImage(SceneRenderState * state)
Called when the SceneManager is ready for the registration of render instances.
processTick(const Move * move)
Processes a move event and updates object state once every 32 milliseconds.
submitLights(LightManager * lm, bool staticLighting)
Submit lights to the light manager passed in.
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
Private Functions
create_splash(const Point3F & pos)
get_launch_constraint_data(Point3F & pos, Point3F & vel)
get_launch_data(Point3F & pos, Point3F & vel)
bool
Public Functions
afxMagicMissile(bool on_server, bool on_client)
DECLARE_CATEGORY("AFX" )
getStartingVelocityValues(F32 & vel, Point3F & vel_vec)
onDeleteNotify(SimObject * object)
Called when a SimObject is deleted.
setStartingVelocity(const F32 vel)
setStartingVelocityVector(const Point3F & vel_vec)
setSubstitutionData(SimObject * obj, S32 idx)
Public Static Functions
Detailed Description
Public Types
UpdateMasks
Enumerator
- GuideMask = Parent::NextFreeMask << 0
- LaunchMask = Parent::NextFreeMask << 1
- ImpactMask = Parent::NextFreeMask << 2
- NextFreeMask = Parent::NextFreeMask << 3
Private Types
typedef GameBase Parent
Protected Attributes
afxChoreographer * choreographer
bool client_only
SceneObject * collide_exempt
U32 collision_mask
bool did_impact
bool did_launch
bool hover_attack_go
U32 hover_attack_tick
Point3F mCurrBackDelta
Point3F mCurrDeltaBase
Point3F mCurrPosition
U32 mCurrTick
Current time in ticks.
Point3F mCurrVelocity
afxMagicMissileData * mDataBlock
SceneObject * missile_target
LightInfo * mLight
LightState mLightState
ParticleEmitter * mParticleEmitter
ParticleEmitter * mParticleWaterEmitter
PhysicsWorld * mPhysicsWorld
TSShapeInstance * mProjectileShape
SFXSource * mSound
F32 prec_inc
bool server_only
S32 ss_index
SimObject * ss_object
Point3F starting_vel_vec
F32 starting_velocity
bool use_accel
Protected Functions
emitParticles(const Point3F & , const Point3F & , const Point3F & , const U32)
getLight()
Reimplemented from: ISceneLight
interpolateTick(F32 delta)
Reimplemented from: ProcessObject
onAdd()
Reimplemented from: SceneObject
onNewDataBlock(GameBaseData * dptr, bool reload)
Reimplemented from: GameBase
onRemove()
Reimplemented from: SceneObject
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Reimplemented from: SceneObject
pointInWater(const Point3F & point)
prepBatchRender(SceneRenderState * state)
prepRenderImage(SceneRenderState * state)
Reimplemented from: SceneObject
processTick(const Move * move)
Reimplemented from: ProcessObject
submitLights(LightManager * lm, bool staticLighting)
Reimplemented from: ISceneLight
unpackUpdate(NetConnection * conn, BitStream * stream)
Reimplemented from: SceneObject
updateSound()
Private Functions
create_splash(const Point3F & pos)
get_default_launcher()
get_launch_constraint_data(Point3F & pos, Point3F & vel)
get_launch_data(Point3F & pos, Point3F & vel)
init(bool on_server, bool on_client)
is_active()
Public Functions
afxMagicMissile()
afxMagicMissile(bool on_server, bool on_client)
~afxMagicMissile()
DECLARE_CATEGORY("AFX" )
DECLARE_CONOBJECT(afxMagicMissile )
getStartingVelocityValues(F32 & vel, Point3F & vel_vec)
launch()
onDeleteNotify(SimObject * object)
Reimplemented from: SceneObject
setChoreographer(afxChoreographer * )
setStartingVelocity(const F32 vel)
setStartingVelocityVector(const Point3F & vel_vec)
setSubstitutionData(SimObject * obj, S32 idx)