|
Crossfire JXClient, Trunk
R20561
|
Maintain the set of skills as sent by the server. More...
Collaboration diagram for com.realtime.crossfire.jxclient.skills.SkillSet:Public Member Functions | |
| void | addSkill (final int id, @NotNull final String skillName, final int face) |
| Adds a new skill to the list of known skills. More... | |
| void | clearNumberedSkills () |
| Clears all stat info in numberedSkills. More... | |
| void | clearSkills () |
| Clears all skills. More... | |
| Skill | getNamedSkill (@NotNull final String skillName, final int face) |
| Returns the skill instance for a given skill name. More... | |
| Skill | getSkill (final int id) |
| Returns the given skill as a Skill object. More... | |
| int | getSkillId (final String name) |
| Get a skill identifier from the skill name. More... | |
| SkillSet (@NotNull final GuiStateManager guiStateManager) | |
| Creates a new instance. More... | |
Private Attributes | |
| final GuiStateListener | guiStateListener |
| The GuiStateListener for detecting established or dropped connections. More... | |
| final Map< String, Skill > | namedSkills = new HashMap<>() |
| Maps skill name to skill instance. More... | |
| final Skill [] | numberedSkills = new Skill[Stats.CS_NUM_SKILLS] |
| Maps stat number to skill instance. More... | |
Maintain the set of skills as sent by the server.
Definition at line 38 of file SkillSet.java.
| com.realtime.crossfire.jxclient.skills.SkillSet.SkillSet | ( | @NotNull final GuiStateManager | guiStateManager | ) |
Creates a new instance.
| guiStateManager | the gui state manager to watch |
Definition at line 102 of file SkillSet.java.
References com.realtime.crossfire.jxclient.skills.SkillSet.guiStateListener.
| void com.realtime.crossfire.jxclient.skills.SkillSet.addSkill | ( | final int | id, |
| @NotNull final String | skillName, | ||
| final int | face | ||
| ) |
Adds a new skill to the list of known skills.
| id | the numerical identifier for the new skill |
| skillName | the skill name |
| face | the skill's face |
Definition at line 120 of file SkillSet.java.
References com.realtime.crossfire.jxclient.stats.Stats.CS_STAT_SKILLINFO, com.realtime.crossfire.jxclient.skills.SkillSet.getNamedSkill(), and com.realtime.crossfire.jxclient.skills.Skill.set().
Referenced by com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection.processSkillInfoReplyinfo().
Here is the call graph for this function:
Here is the caller graph for this function:| void com.realtime.crossfire.jxclient.skills.SkillSet.clearNumberedSkills | ( | ) |
Clears all stat info in numberedSkills.
Definition at line 157 of file SkillSet.java.
Referenced by com.realtime.crossfire.jxclient.skills.SkillSet.clearSkills(), and com.realtime.crossfire.jxclient.items.ItemsManager.playerReceived().
Here is the caller graph for this function:| void com.realtime.crossfire.jxclient.skills.SkillSet.clearSkills | ( | ) |
Clears all skills.
Definition at line 109 of file SkillSet.java.
References com.realtime.crossfire.jxclient.skills.SkillSet.clearNumberedSkills().
Referenced by com.realtime.crossfire.jxclient.server.crossfire.DefaultCrossfireServerConnection.processSkillInfoReplyinfo().
Here is the call graph for this function:
Here is the caller graph for this function:| Skill com.realtime.crossfire.jxclient.skills.SkillSet.getNamedSkill | ( | @NotNull final String | skillName, |
| final int | face | ||
| ) |
Returns the skill instance for a given skill name.
| skillName | the skill name to look up |
| face | the skill face to set. |
Definition at line 141 of file SkillSet.java.
References com.realtime.crossfire.jxclient.skills.Skill.setFace().
Referenced by com.realtime.crossfire.jxclient.skills.SkillSet.addSkill(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseEvent(), and com.realtime.crossfire.jxclient.skin.io.GaugeUpdaterParser.parseGaugeUpdater().
Here is the call graph for this function:
Here is the caller graph for this function:| Skill com.realtime.crossfire.jxclient.skills.SkillSet.getSkill | ( | final int | id | ) |
Returns the given skill as a Skill object.
| id | the numerical skill identifier |
Definition at line 172 of file SkillSet.java.
References com.realtime.crossfire.jxclient.stats.Stats.CS_STAT_SKILLINFO.
Referenced by com.realtime.crossfire.jxclient.scripts.DefaultScriptProcess.cmdRequest(), com.realtime.crossfire.jxclient.spells.Spell.getTooltipText(), com.realtime.crossfire.jxclient.spells.SpellsManager.rebuildSkills(), and com.realtime.crossfire.jxclient.stats.Stats.setStatSkill().
Here is the caller graph for this function:| int com.realtime.crossfire.jxclient.skills.SkillSet.getSkillId | ( | final String | name | ) |
Get a skill identifier from the skill name.
This identifier can be used through getSkill.
| name | skill's name |
Definition at line 182 of file SkillSet.java.
References com.realtime.crossfire.jxclient.stats.Stats.CS_STAT_SKILLINFO.
Referenced by com.realtime.crossfire.jxclient.spells.SpellsManager.filterSkill().
Here is the caller graph for this function:
|
private |
The GuiStateListener for detecting established or dropped connections.
Definition at line 59 of file SkillSet.java.
Referenced by com.realtime.crossfire.jxclient.skills.SkillSet.SkillSet().
|
private |
Maps skill name to skill instance.
Definition at line 51 of file SkillSet.java.
|
private |
Maps stat number to skill instance.
Entries may be
if the server did not provide a mapping.
Definition at line 45 of file SkillSet.java.