afxEffectron
Engine/source/afx/afxEffectron.h
Classes:
Public Types
enum
_Anonymous_ { NULL_EVENT ACTIVATE_EVENT SHUTDOWN_EVENT DEACTIVATE_EVENT INTERRUPT_EVENT }
enum
_Anonymous_ { INACTIVE_STATE ACTIVE_STATE CLEANUP_STATE DONE_STATE LATE_STATE }
enum
_Anonymous_ { MARK_ACTIVATE = BIT(0) MARK_SHUTDOWN = BIT(1) MARK_DEACTIVATE = BIT(2) MARK_INTERRUPT = BIT(3) }
enum
MaskBits { StateEventMask = Parent::NextFreeMask << 0 SyncEventMask = Parent::NextFreeMask << 1 NextFreeMask = Parent::NextFreeMask << 2 }
Private Types
Parent
Private Static Attributes
Private Attributes
Private Functions
change_state_c(U8 pending_state)
change_state_s(U8 pending_state)
bool
enter_active_state_c(F32 starttime)
process_client(F32 dt)
bool
sync_client(U16 marks, U8 state, F32 elapsed)
Public Functions
afxEffectron(bool not_default)
bool
activationCallInit(bool postponed)
advanceTime(F32 dt)
Advances simulation time for animations.
DECLARE_CATEGORY("AFX" )
inflictDamage(const char * label, const char * flavor, SimObjectId target, F32 amt, U8 count, F32 ad_amt, F32 rad, Point3F pos, F32 imp)
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.
processTick(const Move * move)
Processes a move event and updates object state once every 32 milliseconds.
setTimeFactor(F32 f)
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
Public Static Functions
start_effect(afxEffectronData * , SimObject * extra)
Detailed Description
Public Types
@11
Enumerator
- NULL_EVENT
- ACTIVATE_EVENT
- SHUTDOWN_EVENT
- DEACTIVATE_EVENT
- INTERRUPT_EVENT
@12
Enumerator
- INACTIVE_STATE
- ACTIVE_STATE
- CLEANUP_STATE
- DONE_STATE
- LATE_STATE
@13
Enumerator
- MARK_ACTIVATE = BIT(0)
- MARK_SHUTDOWN = BIT(1)
- MARK_DEACTIVATE = BIT(2)
- MARK_INTERRUPT = BIT(3)
MaskBits
Enumerator
- StateEventMask = Parent::NextFreeMask << 0
- SyncEventMask = Parent::NextFreeMask << 1
- NextFreeMask = Parent::NextFreeMask << 2
Private Types
typedef afxChoreographer Parent
Private Static Attributes
StringTableEntry CAMERA_CONS
StringTableEntry LISTENER_CONS
Private Attributes
afxPhrase * active_phrase
afxConstraintID camera_cons_id
SceneObject * camera_cons_obj
bool constraints_initialized
afxEffectronData * datablock
F32 effect_elapsed
U8 effect_state
SimObject * exeblock
afxConstraintID listener_cons_id
U8 marks_mask
bool scoping_initialized
F32 time_factor
Private Functions
change_state_c(U8 pending_state)
change_state_s(U8 pending_state)
cleanup_over()
enter_active_state_c(F32 starttime)
enter_active_state_s()
enter_cleanup_state_s()
enter_done_state_s()
init()
init_constraints()
init_scoping()
leave_active_state_c()
leave_active_state_s()
process_client(F32 dt)
process_server()
setup_active_fx()
state_expired()
sync_client(U16 marks, U8 state, F32 elapsed)
Public Functions
afxEffectron()
afxEffectron(bool not_default)
~afxEffectron()
activate()
activationCallInit(bool postponed)
advanceTime(F32 dt)
Reimplemented from: ProcessObject
DECLARE_CATEGORY("AFX" )
DECLARE_CONOBJECT(afxEffectron )
finish_startup()
getTimeFactor()
inflictDamage(const char * label, const char * flavor, SimObjectId target, F32 amt, U8 count, F32 ad_amt, F32 rad, Point3F pos, F32 imp)
Reimplemented from: afxChoreographer
onAdd()
Reimplemented from: afxChoreographer
onNewDataBlock(GameBaseData * dptr, bool reload)
Reimplemented from: afxChoreographer
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Reimplemented from: afxChoreographer
postEvent(U8 event)
processTick(const Move * move)
Reimplemented from: ProcessObject
setTimeFactor(F32 f)
sync_with_clients()
Reimplemented from: afxChoreographer
unpackUpdate(NetConnection * conn, BitStream * stream)
Reimplemented from: afxChoreographer