afxMagicSpellData
Engine/source/afx/afxMagicSpell.h
Classes:
Callbacks
DECLARE_CALLBACK(void , onDeactivate , (afxMagicSpell *spell) )
DECLARE_CALLBACK(void , onInterrupt , (afxMagicSpell *spell, ShapeBase *caster) )
DECLARE_CALLBACK(void , onLaunch , (afxMagicSpell *spell, ShapeBase *caster, SceneObject *target, afxMagicMissile *missile) )
DECLARE_CALLBACK(void , onImpact , (afxMagicSpell *spell, ShapeBase *caster, SceneObject *impacted, Point3F pos, Point3F normal) )
DECLARE_CALLBACK(bool , onPreactivate , (SimObject *param_holder, ShapeBase *caster, SceneObject *target, SimObject *extra) )
DECLARE_CALLBACK(void , onActivate , (afxMagicSpell *spell, ShapeBase *caster, SceneObject *target) )
Private Types
Parent
Private Attributes
bool
Public Attributes
bool
Public Functions
afxMagicSpellData(const afxMagicSpellData & , bool )
bool
DECLARE_CATEGORY("AFX" )
bool
onAdd()
Called when the object is added to the sim.
pack_fx(BitStream * stream, const afxEffectList & fx, bool packed)
bool
unpack_fx(BitStream * stream, afxEffectList & fx)
unpackData(BitStream * )
bool
writeField(StringTableEntry fieldname, const char * value)
Determine whether or not a field should be written.
Public Static Functions
Detailed Description
Callbacks
DECLARE_CALLBACK(void , onDamage , (afxMagicSpell *spell, const char *label, const char *flaver, U32 target_id, F32 amount, U8 n, Point3F pos, F32 ad_amount, F32 radius, F32 impulse) )
DECLARE_CALLBACK(void , onDeactivate , (afxMagicSpell *spell) )
DECLARE_CALLBACK(void , onInterrupt , (afxMagicSpell *spell, ShapeBase *caster) )
DECLARE_CALLBACK(void , onLaunch , (afxMagicSpell *spell, ShapeBase *caster, SceneObject *target, afxMagicMissile *missile) )
DECLARE_CALLBACK(void , onImpact , (afxMagicSpell *spell, ShapeBase *caster, SceneObject *impacted, Point3F pos, Point3F normal) )
DECLARE_CALLBACK(bool , onPreactivate , (SimObject *param_holder, ShapeBase *caster, SceneObject *target, SimObject *extra) )
DECLARE_CALLBACK(void , onActivate , (afxMagicSpell *spell, ShapeBase *caster, SceneObject *target) )
Private Types
typedef afxChoreographerData Parent
Private Attributes
bool mDo_id_convert
Public Attributes
F32 mCasting_dur
afxEffectList mCasting_fx_list
F32 mDelivery_dur
afxEffectList mDelivery_fx_list
bool mDo_move_interrupts
afxEffectWrapperData * mDummy_fx_entry
F32 mExtra_casting_time
F32 mExtra_delivery_time
F32 mExtra_linger_time
afxEffectList mImpact_fx_list
afxEffectList mLaunch_fx_list
bool mLaunch_on_server_signal
F32 mLinger_dur
afxEffectList mLinger_fx_list
afxMagicMissileData * mMissile_db
F32 mMove_interrupt_speed
S32 mNum_casting_loops
S32 mNum_delivery_loops
S32 mNum_linger_loops
U32 mPrimary_target_types
Public Functions
afxMagicSpellData()
afxMagicSpellData(const afxMagicSpellData & , bool )
allowSubstitutions()
Reimplemented from: SimObject
DECLARE_CATEGORY("AFX" )
DECLARE_CONOBJECT(afxMagicSpellData )
gatherConstraintDefs(Vector< afxConstraintDef > & )
onAdd()
Reimplemented from: SimObject
pack_fx(BitStream * stream, const afxEffectList & fx, bool packed)
packData(BitStream * )
Reimplemented from: afxChoreographerData
preload(bool server, String & errorStr)
Reimplemented from: afxChoreographerData
reloadReset()
Reimplemented from: SimObject
unpack_fx(BitStream * stream, afxEffectList & fx)
unpackData(BitStream * )
Reimplemented from: afxChoreographerData
writeField(StringTableEntry fieldname, const char * value)
Reimplemented from: SimObject