Crossfire JXClient, Trunk
|
Public Member Functions | |
void | addSpellListener (@NotNull final SpellListener listener) |
int | getCastingTime () |
int | getDamage () |
int | getFaceNum () |
int | getGrace () |
int | getLevel () |
int | getMana () |
String | getMessage () |
String | getName () |
int | getPath () |
int | getSkill () |
int | getTag () |
String | getTooltipText () |
boolean | isUnknown () |
void | removeSpellListener (@NotNull final SpellListener listener) |
void | setParameters (final int faceNum, final int tag, @NotNull final String message, final int level, final int castingTime, final int mana, final int grace, final int damage, final int skill, final int path) |
void | setUnknown (final boolean unknown) |
Spell (@NotNull final String name, @NotNull final SkillSet skillSet, @NotNull final Stats stats) | |
String | toString () |
void | updateParameters (final boolean updateMana, final int mana, final boolean updateGrace, final int grace, final boolean updateDamage, final int damage) |
Private Member Functions | |
void | fireChanged () |
Private Attributes | |
int | castingTime |
int | damage |
int | faceNum |
int | grace |
int | level |
final EventListenerList2< SpellListener > | listeners = new EventListenerList2<>() |
int | mana |
String | message = "" |
final String | name |
int | path |
int | skill |
final SkillSet | skillSet |
final Stats | stats |
int | tag |
boolean | unknown |
Describes a Crossfire spell.
Definition at line 37 of file Spell.java.
com.realtime.crossfire.jxclient.spells.Spell.Spell | ( | @NotNull final String | name, |
@NotNull final SkillSet | skillSet, | ||
@NotNull final Stats | stats | ||
) |
Creates a new instance.
name | the spell name |
skillSet | the skills |
stats | the stats instance |
Definition at line 123 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.name, com.realtime.crossfire.jxclient.spells.Spell.skillSet, and com.realtime.crossfire.jxclient.spells.Spell.stats.
void com.realtime.crossfire.jxclient.spells.Spell.addSpellListener | ( | @NotNull final SpellListener | listener | ) |
Adds a SpellListener to be notified of changes.
listener | the listener to add |
Definition at line 420 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.listeners.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSpell(), and com.realtime.crossfire.jxclient.shortcuts.Shortcut.Shortcut().
|
private |
Notifies all listeners.
Definition at line 410 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.listeners.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.setParameters(), com.realtime.crossfire.jxclient.spells.Spell.setUnknown(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
int com.realtime.crossfire.jxclient.spells.Spell.getCastingTime | ( | ) |
Returns the casting time.
Definition at line 149 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.castingTime.
int com.realtime.crossfire.jxclient.spells.Spell.getDamage | ( | ) |
Returns the damage done by the spell.
Definition at line 173 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.damage.
int com.realtime.crossfire.jxclient.spells.Spell.getFaceNum | ( | ) |
Returns the face number.
Definition at line 215 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.faceNum.
Referenced by com.realtime.crossfire.jxclient.shortcuts.Shortcut.displaysFace(), com.realtime.crossfire.jxclient.items.SpellsView.getItem(), and com.realtime.crossfire.jxclient.gui.item.GUIItemShortcut.paintComponent().
int com.realtime.crossfire.jxclient.spells.Spell.getGrace | ( | ) |
Returns the grace needed to cast the spell.
Definition at line 165 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.grace.
int com.realtime.crossfire.jxclient.spells.Spell.getLevel | ( | ) |
Returns the spell level.
Definition at line 141 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.level.
int com.realtime.crossfire.jxclient.spells.Spell.getMana | ( | ) |
Returns the mana needed to cast the spell.
Definition at line 157 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.mana.
String com.realtime.crossfire.jxclient.spells.Spell.getMessage | ( | ) |
Returns the description.
Definition at line 207 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.message.
String com.realtime.crossfire.jxclient.spells.Spell.getName | ( | ) |
Returns the spell name.
Definition at line 198 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.name.
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.button1Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.button2Clicked(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.button3Clicked(), com.realtime.crossfire.jxclient.spells.SpellsManager.deleteSpellByIndex(), and com.realtime.crossfire.jxclient.items.SpellsView.getItem().
int com.realtime.crossfire.jxclient.spells.Spell.getPath | ( | ) |
Returns the spell path.
Definition at line 189 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.path.
int com.realtime.crossfire.jxclient.spells.Spell.getSkill | ( | ) |
Returns the spell's skill. See Stats#CS_STAT_SKILLINFO.
Definition at line 181 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.skill.
int com.realtime.crossfire.jxclient.spells.Spell.getTag | ( | ) |
Returns the tag ID.
Definition at line 133 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.tag.
Referenced by com.realtime.crossfire.jxclient.items.SpellsView.getItem().
String com.realtime.crossfire.jxclient.spells.Spell.getTooltipText | ( | ) |
Returns a description for this spell to be used in tooltips.
Definition at line 357 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.SpellPaths.appendSpellPaths(), com.realtime.crossfire.jxclient.stats.Stats.CS_STAT_SPELL_ATTUNE, com.realtime.crossfire.jxclient.stats.Stats.CS_STAT_SPELL_DENY, com.realtime.crossfire.jxclient.stats.Stats.CS_STAT_SPELL_REPEL, com.realtime.crossfire.jxclient.spells.Spell.damage, com.realtime.crossfire.jxclient.skills.Skill.getLevel(), com.realtime.crossfire.jxclient.skills.SkillSet.getSkill(), com.realtime.crossfire.jxclient.stats.Stats.getStat(), com.realtime.crossfire.jxclient.spells.Spell.grace, com.realtime.crossfire.jxclient.spells.Spell.level, com.realtime.crossfire.jxclient.spells.Spell.mana, com.realtime.crossfire.jxclient.spells.Spell.message, com.realtime.crossfire.jxclient.spells.Spell.name, com.realtime.crossfire.jxclient.spells.Spell.path, com.realtime.crossfire.jxclient.spells.Spell.skill, com.realtime.crossfire.jxclient.spells.Spell.skillSet, com.realtime.crossfire.jxclient.util.StringSplitter.splitAsHtml(), com.realtime.crossfire.jxclient.spells.Spell.stats, com.realtime.crossfire.jxclient.skills.Skill.toString(), and com.realtime.crossfire.jxclient.spells.Spell.unknown.
Referenced by com.realtime.crossfire.jxclient.gui.list.GUISpellList.getTooltip(), and com.realtime.crossfire.jxclient.shortcuts.Shortcut.getTooltipText().
boolean com.realtime.crossfire.jxclient.spells.Spell.isUnknown | ( | ) |
Returns whether this spell is unknown to the character.
Definition at line 223 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.unknown.
void com.realtime.crossfire.jxclient.spells.Spell.removeSpellListener | ( | @NotNull final SpellListener | listener | ) |
Removes a SpellListener to be notified of changes.
listener | the listener to remove |
Definition at line 428 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.listeners.
Referenced by com.realtime.crossfire.jxclient.shortcuts.Shortcut.dispose(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.dispose(), and com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSpell().
void com.realtime.crossfire.jxclient.spells.Spell.setParameters | ( | final int | faceNum, |
final int | tag, | ||
@NotNull final String | message, | ||
final int | level, | ||
final int | castingTime, | ||
final int | mana, | ||
final int | grace, | ||
final int | damage, | ||
final int | skill, | ||
final int | path | ||
) |
Updates the spell's parameters.
faceNum | the face number |
tag | the tag ID |
message | the description |
level | the spell level |
castingTime | the casting time |
mana | the mana needed to cast the spell |
grace | the grace needed to cast the spell |
damage | the damage done by the spell |
skill | the spell's skill |
path | the spell path |
Definition at line 251 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.castingTime, com.realtime.crossfire.jxclient.spells.Spell.damage, com.realtime.crossfire.jxclient.spells.Spell.faceNum, com.realtime.crossfire.jxclient.spells.Spell.fireChanged(), com.realtime.crossfire.jxclient.spells.Spell.grace, com.realtime.crossfire.jxclient.spells.Spell.level, com.realtime.crossfire.jxclient.spells.Spell.mana, com.realtime.crossfire.jxclient.spells.Spell.message, com.realtime.crossfire.jxclient.spells.Spell.path, com.realtime.crossfire.jxclient.spells.Spell.skill, com.realtime.crossfire.jxclient.spells.Spell.tag, and com.realtime.crossfire.jxclient.spells.Spell.unknown.
Referenced by com.realtime.crossfire.jxclient.spells.SpellsManager.addSpell().
void com.realtime.crossfire.jxclient.spells.Spell.setUnknown | ( | final boolean | unknown | ) |
Marks this spell as known or unknown for the character.
unknown | whether this spell is unknown |
Definition at line 231 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.fireChanged(), and com.realtime.crossfire.jxclient.spells.Spell.unknown.
Referenced by com.realtime.crossfire.jxclient.spells.SpellsManager.deleteSpellByIndex().
String com.realtime.crossfire.jxclient.spells.Spell.toString | ( | ) |
Definition at line 348 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.castingTime, com.realtime.crossfire.jxclient.spells.Spell.damage, com.realtime.crossfire.jxclient.spells.Spell.grace, com.realtime.crossfire.jxclient.spells.Spell.level, com.realtime.crossfire.jxclient.spells.Spell.mana, com.realtime.crossfire.jxclient.spells.Spell.name, com.realtime.crossfire.jxclient.spells.Spell.path, com.realtime.crossfire.jxclient.spells.Spell.skill, com.realtime.crossfire.jxclient.spells.Spell.tag, and com.realtime.crossfire.jxclient.spells.Spell.unknown.
void com.realtime.crossfire.jxclient.spells.Spell.updateParameters | ( | final boolean | updateMana, |
final int | mana, | ||
final boolean | updateGrace, | ||
final int | grace, | ||
final boolean | updateDamage, | ||
final int | damage | ||
) |
Updates the spell's parameters.
updateMana | whether to update the mana |
mana | the mana needed to cast the spell |
updateGrace | whether to update the grace |
grace | the grace needed to cast the spell |
updateDamage | whether to update the damage |
damage | the damage done by the spell |
Definition at line 323 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.damage, com.realtime.crossfire.jxclient.spells.Spell.fireChanged(), com.realtime.crossfire.jxclient.spells.Spell.grace, and com.realtime.crossfire.jxclient.spells.Spell.mana.
|
private |
The casting time.
Definition at line 75 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getCastingTime(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.toString().
|
private |
The damage done by the spell.
Definition at line 90 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getDamage(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), com.realtime.crossfire.jxclient.spells.Spell.toString(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
|
private |
The face number.
Definition at line 54 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getFaceNum(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
The grace needed to cast the spell.
Definition at line 85 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getGrace(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), com.realtime.crossfire.jxclient.spells.Spell.toString(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
|
private |
The spell level.
Definition at line 70 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getLevel(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.toString().
|
private |
The SpellListeners to be notified of changes.
Definition at line 49 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.addSpellListener(), com.realtime.crossfire.jxclient.spells.Spell.fireChanged(), and com.realtime.crossfire.jxclient.spells.Spell.removeSpellListener().
|
private |
The mana needed to cast the spell.
Definition at line 80 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getMana(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), com.realtime.crossfire.jxclient.spells.Spell.toString(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
|
private |
The description.
Definition at line 65 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getMessage(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
The spell name.
Definition at line 43 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getName(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.Spell(), and com.realtime.crossfire.jxclient.spells.Spell.toString().
|
private |
The spell path.
Definition at line 100 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getPath(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.toString().
|
private |
The spell's skill. See Stats#CS_STAT_SKILLINFO.
Definition at line 95 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getSkill(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.toString().
|
private |
To get the skill's name, see SkillSet.
Definition at line 110 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), and com.realtime.crossfire.jxclient.spells.Spell.Spell().
|
private |
Attuned, repelled or denied information.
Definition at line 115 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), and com.realtime.crossfire.jxclient.spells.Spell.Spell().
|
private |
The tag ID.
Definition at line 59 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getTag(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.toString().
|
private |
Whether this spell is unknown to the character.
Definition at line 105 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.Spell.isUnknown(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), com.realtime.crossfire.jxclient.spells.Spell.setUnknown(), and com.realtime.crossfire.jxclient.spells.Spell.toString().