Add startGoalXp and endGoalXp to XpTrackerService
Expose startGoalXp and endGoalXp from XpTrackerService and cleanup wrong JavaDocs. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -30,29 +30,31 @@ public interface XpTrackerService
|
||||
{
|
||||
/**
|
||||
* Get the number of actions done
|
||||
* @param skill
|
||||
* @return
|
||||
*/
|
||||
int getActions(Skill skill);
|
||||
|
||||
/**
|
||||
* Get the number of actions per hour
|
||||
* @param skill
|
||||
* @return
|
||||
*/
|
||||
int getActionsHr(Skill skill);
|
||||
|
||||
/**
|
||||
* Get the number of actions remaining
|
||||
* @param skill
|
||||
* @return
|
||||
*/
|
||||
int getActionsLeft(Skill skill);
|
||||
|
||||
/**
|
||||
* Get the amount of xp per hour
|
||||
* @param skill
|
||||
* @return
|
||||
*/
|
||||
int getXpHr(Skill skill);
|
||||
|
||||
/**
|
||||
* Get the start goal XP
|
||||
*/
|
||||
int getStartGoalXp(Skill skill);
|
||||
|
||||
/**
|
||||
* Get the amount of XP left until goal level
|
||||
*/
|
||||
int getEndGoalXp(Skill skill);
|
||||
}
|
||||
|
||||
@@ -62,4 +62,16 @@ class XpTrackerServiceImpl implements XpTrackerService
|
||||
{
|
||||
return plugin.getSkillSnapshot(skill).getXpPerHour();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getStartGoalXp(Skill skill)
|
||||
{
|
||||
return plugin.getSkillSnapshot(skill).getStartGoalXp();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEndGoalXp(Skill skill)
|
||||
{
|
||||
return plugin.getSkillSnapshot(skill).getEndGoalXp();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user