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 |
---|
static final int UPD_SP_DAMAGE
static final int UPD_SP_GRACE
static final int UPD_SP_MANA
Method Detail |
---|
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)
tag
- the spell taglevel
- the spell levelcastingTime
- the casting timemana
- the mana needed to cast the spellgrace
- the grace needed to case the spelldamage
- the damage doneskill
- the skill needed to cast the spellpath
- the spell pathface
- the face of the spell iconname
- the spell namemessage
- the spell descriptionvoid deleteSpell(int tag)
tag
- the spell tagvoid updateSpell(int flags, int tag, int mana, int grace, int damage)
flags
- the changed informationtag
- the spell tagmana
- the mana needed to cast the spellgrace
- the grace needed to cast the spelldamage
- the damage done