Amulets & Armor  v1.02
Open Source Game
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros | Functions
SPELLS

Spells System. More...

Macros

#define MANA_BACKCOLOR   225
 

Functions

T_void SpellsAddRune (T_buttonID buttonID)
 
T_void SpellsBackspace (T_buttonID buttonID)
 
T_void SpellsCastSpell (T_buttonID buttonID)
 
T_void SpellsClearRune (E_spellsRuneType type)
 
T_void SpellsClearRunes (T_buttonID buttonID)
 
T_void SpellsDrawInEffectRunes (T_word16 left, T_word16 right, T_word16 top, T_word16 bottom)
 
T_void SpellsDrawRuneBox (T_void)
 
T_void SpellsFinish (T_void)
 
T_void SpellsInitSpells (T_void)
 
T_void SpellsSetRune (E_spellsRuneType type)
 
T_void SpellsStopAll (T_void)
 

Detailed Description

Spells System.

All spell casting goes through here.

See Also
http://www.amuletsandarmor.com/AALicense.txt

Macro Definition Documentation

#define MANA_BACKCOLOR   225

Function Documentation

T_void SpellsAddRune ( T_buttonID  buttonID)

Callback routine assigned to a rune button, adds rune to spell box

T_void SpellsBackspace ( T_buttonID  buttonID)

Callback routine assigned to the rune backspace button, removes last tune entered.

NOTE: Currently same as SpellsClear

T_void SpellsCastSpell ( T_buttonID  buttonID)

This routine attempts to cast the currently selected spell

T_void SpellsClearRune ( E_spellsRuneType  type)
T_void SpellsClearRunes ( T_buttonID  buttonID)

Callback routine assigned to the rune clearbox button, clears runes in spell box

T_void SpellsDrawInEffectRunes ( T_word16  left,
T_word16  right,
T_word16  top,
T_word16  bottom 
)
T_void SpellsDrawRuneBox ( T_void  )

This routine draws the selected icons for the current spell in the spell box

T_void SpellsFinish ( T_void  )

SpellsFinish gets rid of any memory or resources associated with all the spells, either in effect, or able to be used.

T_void SpellsInitSpells ( T_void  )

Initializes variables associated with spell casting. Must be called prior to client login.

T_void SpellsSetRune ( E_spellsRuneType  type)
T_void SpellsStopAll ( T_void  )

SpellsStopAll turns off all the spells that are in effect.