T
- Skill enum type used.S
- Skill type used.public interface SkilledServices<T extends Enum<T> & ObjectType,S extends SkillStrategy<T>>
Modifier and Type | Method and Description |
---|---|
void |
addSkill(S skill,
int panel)
Link skill to the entity.
|
S |
getSkill(int panel,
T id)
Get a skill from its id.
|
int |
getSkillPanel()
Get the current skill panel.
|
Collection<S> |
getSkills()
Get all skills from all panels.
|
Collection<S> |
getSkills(int panel)
Get all skills as collection (iterable) from a panel.
|
void |
removeSkill(int panel,
T id)
Remove a skill.
|
void |
setSkillPanel(int currentSkillPanel)
Set the current skill panel.
|
void |
setSkillPanelNext(int nextSkillPanel)
Set the next skill panel (will be applied on the next update, so differed compared to
setSkillPanel(int)
. |
void |
update(double extrp)
Main routine, has to be called in a game loop.
|
void update(double extrp)
extrp
- The extrapolation value.void addSkill(S skill, int panel)
skill
- The skill to add.panel
- The panel id (>= 0).S getSkill(int panel, T id)
panel
- The panel (>= 0).id
- The skill id.void removeSkill(int panel, T id)
panel
- The skill panel (>= 0).id
- The skill id.Collection<S> getSkills(int panel)
panel
- The skill panel (>= 0).Collection<S> getSkills()
void setSkillPanel(int currentSkillPanel)
currentSkillPanel
- The current skill panel (>= 0).void setSkillPanelNext(int nextSkillPanel)
setSkillPanel(int)
.nextSkillPanel
- The next skill panel (>= 0).int getSkillPanel()
Copyright © 2014 Byron 3D Games Studio. All rights reserved.