|
Crossfire JXClient, Trunk
R20561
|
Describes a Crossfire spell. More...
Collaboration diagram for com.realtime.crossfire.jxclient.spells.Spell:Public Member Functions | |
| void | addSpellListener (@NotNull final SpellListener listener) |
| Adds a SpellListener to be notified of changes. More... | |
| int | getCastingTime () |
| Returns the casting time. More... | |
| int | getDamage () |
| Returns the damage done by the spell. More... | |
| int | getFaceNum () |
| Returns the face number. More... | |
| int | getGrace () |
| Returns the grace needed to cast the spell. More... | |
| int | getLevel () |
| Returns the spell level. More... | |
| int | getMana () |
| Returns the mana needed to cast the spell. More... | |
| String | getMessage () |
| Returns the description. More... | |
| String | getName () |
| Returns the spell name. More... | |
| int | getPath () |
| Returns the spell path. More... | |
| int | getSkill () |
| Returns the spell's skill. More... | |
| int | getTag () |
| Returns the tag ID. More... | |
| String | getTooltipText () |
| Returns a description for this spell to be used in tooltips. More... | |
| boolean | isUnknown () |
| Returns whether this spell is unknown to the character. More... | |
| void | removeSpellListener (@NotNull final SpellListener listener) |
| Removes a SpellListener to be notified of changes. More... | |
| 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) |
| Updates the spell's parameters. More... | |
| void | setUnknown (final boolean unknown) |
| Marks this spell as known or unknown for the character. More... | |
| Spell (@NotNull final String name, @NotNull final SkillSet skillSet, @NotNull final Stats stats) | |
| Creates a new instance. More... | |
| String | toString () |
| void | updateParameters (final boolean updateMana, final int mana, final boolean updateGrace, final int grace, final boolean updateDamage, final int damage) |
| Updates the spell's parameters. More... | |
Private Member Functions | |
| void | fireChanged () |
| Notifies all listeners. More... | |
Private Attributes | |
| int | castingTime |
| The casting time. More... | |
| int | damage |
| The damage done by the spell. More... | |
| int | faceNum |
| The face number. More... | |
| int | grace |
| The grace needed to cast the spell. More... | |
| int | level |
| The spell level. More... | |
| final EventListenerList2< SpellListener > | listeners = new EventListenerList2<>() |
| The SpellListeners to be notified of changes. More... | |
| int | mana |
| The mana needed to cast the spell. More... | |
| String | message = "" |
| The description. More... | |
| final String | name |
| The spell name. More... | |
| int | path |
| The spell path. More... | |
| int | skill |
| The spell's skill. More... | |
| final SkillSet | skillSet |
| To get the skill's name, see SkillSet. More... | |
| final Stats | stats |
| Attuned, repelled or denied information. More... | |
| int | tag |
| The tag ID. More... | |
| boolean | unknown |
| Whether this spell is unknown to the character. More... | |
Describes a Crossfire spell.
Definition at line 36 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 122 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 425 of file Spell.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.add().
Referenced by com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSpell(), and com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.ShortcutSpell().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Notifies all listeners.
Definition at line 415 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.setParameters(), com.realtime.crossfire.jxclient.spells.Spell.setUnknown(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
Here is the caller graph for this function:| int com.realtime.crossfire.jxclient.spells.Spell.getCastingTime | ( | ) |
Returns the casting time.
Definition at line 148 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 172 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 214 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.faceNum.
Referenced by com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.displaysFace(), and com.realtime.crossfire.jxclient.items.SpellsView.getItem().
Here is the caller graph for this function:| int com.realtime.crossfire.jxclient.spells.Spell.getGrace | ( | ) |
Returns the grace needed to cast the spell.
Definition at line 164 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 140 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 156 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 206 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 197 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(), com.realtime.crossfire.jxclient.items.SpellsView.getItem(), com.realtime.crossfire.jxclient.spells.SpellsManager.getSpell(), and com.realtime.crossfire.jxclient.window.ShortcutsLoader.saveShortcuts().
Here is the caller graph for this function:| int com.realtime.crossfire.jxclient.spells.Spell.getPath | ( | ) |
Returns the spell path.
Definition at line 188 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.
Definition at line 180 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 132 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.tag.
Referenced by com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.execute(), and com.realtime.crossfire.jxclient.items.SpellsView.getItem().
Here is the caller graph for this function:| String com.realtime.crossfire.jxclient.spells.Spell.getTooltipText | ( | ) |
Returns a description for this spell to be used in tooltips.
Definition at line 359 of file Spell.java.
References 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.skills.Skill.getLevel(), com.realtime.crossfire.jxclient.skills.SkillSet.getSkill(), com.realtime.crossfire.jxclient.stats.Stats.getStat(), com.realtime.crossfire.jxclient.spells.Spell.level, and com.realtime.crossfire.jxclient.util.StringSplitter.splitAsHtml().
Referenced by com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.getTooltipText(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSpell(), and com.realtime.crossfire.jxclient.gui.list.GUISpellList.updateTooltip().
Here is the call graph for this function:
Here is the caller graph for this function:| boolean com.realtime.crossfire.jxclient.spells.Spell.isUnknown | ( | ) |
Returns whether this spell is unknown to the character.
Definition at line 222 of file Spell.java.
References com.realtime.crossfire.jxclient.spells.Spell.unknown.
Referenced by com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.execute().
Here is the caller graph for this function:| 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 433 of file Spell.java.
References com.realtime.crossfire.jxclient.util.EventListenerList2< T extends EventListener >.remove().
Referenced by com.realtime.crossfire.jxclient.shortcuts.ShortcutSpell.dispose(), com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.dispose(), and com.realtime.crossfire.jxclient.gui.item.GUIItemSpell.setSpell().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 250 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, and com.realtime.crossfire.jxclient.spells.Spell.tag.
Referenced by com.realtime.crossfire.jxclient.spells.SpellsManager.addSpell().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 230 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(), and com.realtime.crossfire.jxclient.spells.SpellsManager.getSpell().
Here is the call graph for this function:
Here is the caller graph for this function:| String com.realtime.crossfire.jxclient.spells.Spell.toString | ( | ) |
Definition at line 350 of file Spell.java.
References 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 322 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.
Here is the call graph for this function:
|
private |
The casting time.
Definition at line 74 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getCastingTime(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
The damage done by the spell.
Definition at line 89 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getDamage(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
|
private |
The face number.
Definition at line 53 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 84 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getGrace(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
|
private |
The spell level.
Definition at line 69 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getLevel(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
The SpellListeners to be notified of changes.
Definition at line 48 of file Spell.java.
|
private |
The mana needed to cast the spell.
Definition at line 79 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getMana(), com.realtime.crossfire.jxclient.spells.Spell.setParameters(), and com.realtime.crossfire.jxclient.spells.Spell.updateParameters().
|
private |
The description.
Definition at line 64 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getMessage(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
The spell name.
Definition at line 42 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getName(), and com.realtime.crossfire.jxclient.spells.Spell.Spell().
|
private |
The spell path.
Definition at line 99 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getPath(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
The spell's skill.
Definition at line 94 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getSkill(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
To get the skill's name, see SkillSet.
Definition at line 109 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.Spell().
|
private |
Attuned, repelled or denied information.
Definition at line 114 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.Spell().
|
private |
The tag ID.
Definition at line 58 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.getTag(), and com.realtime.crossfire.jxclient.spells.Spell.setParameters().
|
private |
Whether this spell is unknown to the character.
Definition at line 104 of file Spell.java.
Referenced by com.realtime.crossfire.jxclient.spells.Spell.isUnknown(), com.realtime.crossfire.jxclient.spells.Spell.setUnknown(), and com.realtime.crossfire.jxclient.spells.Spell.toString().