afxSpellBook
Engine/source/afx/afxSpellBook.h
Private Types
enum
MaskBits { AllSpellCooldownMask = Parent::NextFreeMask << 0 NextFreeMask = Parent::NextFreeMask << 1 }
Parent
Private Attributes
Public Functions
advanceTime(F32 dt)
Advances simulation time for animations.
DECLARE_CATEGORY("AFX" )
char *
formatDesc(char * buffer, int len, S32 page, S32 slot)
getCooldownFactor(S32 page, S32 slot)
getPageSlotIndex(S32 page, S32 slot)
getSpellData(S32 page, S32 slot)
const char *
getSpellIcon(S32 page, S32 slot)
getSpellRPGData(S32 page, S32 slot)
bool
isPlaceholder(S32 page, S32 slot)
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.
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
Public Static Functions
Detailed Description
Private Types
MaskBits
Enumerator
- AllSpellCooldownMask = Parent::NextFreeMask << 0
- NextFreeMask = Parent::NextFreeMask << 1
typedef GameBase Parent
Private Attributes
F32 all_spell_cooldown
afxSpellBookData * mDataBlock
Public Functions
afxSpellBook()
~afxSpellBook()
advanceTime(F32 dt)
Reimplemented from: ProcessObject
DECLARE_CATEGORY("AFX" )
DECLARE_CONOBJECT(afxSpellBook )
formatDesc(char * buffer, int len, S32 page, S32 slot)
getCooldownFactor(S32 page, S32 slot)
getPageSlotIndex(S32 page, S32 slot)
getSpellData(S32 page, S32 slot)
getSpellIcon(S32 page, S32 slot)
getSpellRPGData(S32 page, S32 slot)
isPlaceholder(S32 page, S32 slot)
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
processTick(const Move * move)
Reimplemented from: ProcessObject
startAllSpellCooldown()
unpackUpdate(NetConnection * conn, BitStream * stream)
Reimplemented from: SceneObject