com.realtime.crossfire.jxclient.server.crossfire
Interface CrossfireSpellListener


public interface CrossfireSpellListener

Interface for listeners interested in spell information related messages received from the Crossfire server.


Field Summary
static int UPD_SP_DAMAGE
          Flag for updspell command: damage is present.
static int UPD_SP_GRACE
          Flag for updspell command: grace is present.
static int UPD_SP_MANA
          Flag for updspell command: mana is present.
 
Method Summary
 void addSpell(int tag, int level, int castingTime, int mana, int grace, int damage, int skill, int path, int face, java.lang.String name, java.lang.String message)
          An "addspell" command has been received.
 void deleteSpell(int tag)
          A "delspell" command has been received.
 void updateSpell(int flags, int tag, int mana, int grace, int damage)
          And "updspell" command has been received.
 

Field Detail

UPD_SP_DAMAGE

static final int UPD_SP_DAMAGE
Flag for updspell command: damage is present.

See Also:
Constant Field Values

UPD_SP_GRACE

static final int UPD_SP_GRACE
Flag for updspell command: grace is present.

See Also:
Constant Field Values

UPD_SP_MANA

static final int UPD_SP_MANA
Flag for updspell command: mana is present.

See Also:
Constant Field Values
Method Detail

addSpell

void addSpell(int tag,
              int level,
              int castingTime,
              int mana,
              int grace,
              int damage,
              int skill,
              int path,
              int face,
              @NotNull
              java.lang.String name,
              @NotNull
              java.lang.String message)
An "addspell" command has been received.

Parameters:
tag - the spell tag
level - the spell level
castingTime - the casting time
mana - the mana needed to cast the spell
grace - the grace needed to case the spell
damage - the damage done
skill - the skill needed to cast the spell
path - the spell path
face - the face of the spell icon
name - the spell name
message - the spell description

deleteSpell

void deleteSpell(int tag)
A "delspell" command has been received.

Parameters:
tag - the spell tag

updateSpell

void updateSpell(int flags,
                 int tag,
                 int mana,
                 int grace,
                 int damage)
And "updspell" command has been received.

Parameters:
flags - the changed information
tag - the spell tag
mana - the mana needed to cast the spell
grace - the grace needed to cast the spell
damage - the damage done