Torque3D Documentation / _generateds / afxMagicSpellData

afxMagicSpellData

Engine/source/afx/afxMagicSpell.h

More...

Classes:

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

Private Attributes

Public Functions

bool

Called when the object is added to the sim.

pack_fx(BitStream * stream, const afxEffectList & fx, bool packed)
bool
preload(bool server, String & errorStr)

Called to prepare the datablock for use, after it has been unpacked.

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

Public Static Functions

initPersistFields()