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:
Tomas Slusny
2018-10-23 11:05:18 +02:00
parent 32be7abf77
commit e213641e9f
2 changed files with 22 additions and 8 deletions

View File

@@ -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);
}

View File

@@ -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();
}
}