public interface PlayerState
Modifier and Type | Method and Description |
---|---|
int |
getItemAmount(int id)
Gets the amount of the provided item
|
int |
getSkillExperience(Skill skill)
Gets the experience for the provided skill
|
int |
getSkillLevel(Skill skill)
Gets the level for the provided skill
|
float |
getZeahFavour(Favour.House house)
Gets the amount of zeah favour for the provided house
|
boolean |
hasCombatLevel(int combatLevel)
Checks if the state has surpassed the provided combat level
|
boolean |
hasDiary(Diaries.Diary diary)
Checks if the state has the provided diary
|
default boolean |
hasItem(int id)
Checks if the amount for the provided item is higher than 0
|
boolean |
hasQuest(Quests.Quest quest)
Checks if the state has the provided quest
|
int getItemAmount(int id)
id
- The id of the item to get the amount forint getSkillExperience(Skill skill)
skill
- The skill to get the experience forint getSkillLevel(Skill skill)
skill
- The skill to get the level forfloat getZeahFavour(Favour.House house)
house
- The house to get the zeah favour forboolean hasQuest(Quests.Quest quest)
quest
- The quest to checkboolean hasDiary(Diaries.Diary diary)
diary
- The diary to checkboolean hasCombatLevel(int combatLevel)
combatLevel
- The combat level to checkdefault boolean hasItem(int id)
id
- The id of the item to check