afxSpellBook

Engine/source/afx/afxSpellBook.h

More...

Private Types

enum
MaskBits {
  AllSpellCooldownMask = Parent::NextFreeMask << 0
  NextFreeMask = Parent::NextFreeMask << 1
}
Parent 

Public Functions

Advances simulation time for animations.

char *
formatDesc(char * buffer, int len, S32 page, S32 slot)
const char *
getSpellIcon(S32 page, S32 slot)
bool
isPlaceholder(S32 page, S32 slot)
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.

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

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

Public Static Functions

initPersistFields()