afxSelectron

Engine/source/afx/afxSelectron.h

More...

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

Public Friends

class

Public Functions

afxSelectron(bool not_default)

Advances simulation time for animations.

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.

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

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

postEvent(U8 event)

Processes a move event and updates object state once every 32 milliseconds.

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

Public Static Functions

start_selectron(SceneObject * picked, U8 subcode, SimObject * extra)

Detailed Description

Public Types

@23

Enumerator

NULL_EVENT
ACTIVATE_EVENT
SHUTDOWN_EVENT
DEACTIVATE_EVENT
INTERRUPT_EVENT
@24

Enumerator

INACTIVE_STATE
ACTIVE_STATE
CLEANUP_STATE
DONE_STATE
LATE_STATE
@25

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 

Public Friends

Private Static Attributes

StringTableEntry CAMERA_CONS 
StringTableEntry FREE_TARGET_CONS 
StringTableEntry LISTENER_CONS 

Private Attributes

afxConstraintID camera_cons_id 
SceneObject * camera_cons_obj 
bool client_only 
bool constraints_initialized 
afxSelectronData * datablock 
F32 effect_elapsed 
U8 effect_state 
SimObject * exeblock 
afxConstraintID free_target_cons_id 
afxConstraintID listener_cons_id 
U8 marks_mask 
afxPhrase * phrases [NUM_PHRASES]
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_c()

enter_cleanup_state_s()

enter_done_state_c()

enter_done_state_s()

init()

init_constraints()

leave_active_state_c()

leave_active_state_s()

process_client(F32 dt)

process_server()

setup_deselect_fx()

setup_main_fx()

setup_select_fx()

state_expired()

sync_client(U16 marks, U8 state, F32 elapsed)

Public Functions

afxSelectron()

afxSelectron(bool not_default)

~afxSelectron()

activate()

advanceTime(F32 dt)

Reimplemented from: ProcessObject

DECLARE_CATEGORY("AFX" )

DECLARE_CONOBJECT(afxSelectron )

finish_startup()

getTimeFactor()

onAdd()

Reimplemented from: afxChoreographer

onNewDataBlock(GameBaseData * dptr, bool reload)

Reimplemented from: afxChoreographer

onRemove()

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

Public Static Functions

start_selectron(SceneObject * picked, U8 subcode, SimObject * extra)