Package org.dreambot.api.methods.skills
Class SkillTracker
- java.lang.Object
-
- org.dreambot.api.methods.skills.SkillTracker
-
public class SkillTracker extends java.lang.Object
Created by Nezz on 11/3/2014.
-
-
Constructor Summary
Constructors Constructor Description SkillTracker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getGainedExperience(Skill s)
Gets the gained experience since skill tracking beganstatic int
getGainedExperiencePerHour(Skill s)
Gets gained experience per hour based on Skill start timestatic int
getGainedLevels(Skill s)
Gets gained levels of Skillstatic int
getStartExperience(Skill s)
Gets the starting experience value of the Skill.static int
getStartLevel(Skill s)
Gets the Starting level of the Skillstatic long
getStartTime(Skill s)
Gets the start time of the Skillstatic long
getTimeToLevel(Skill s)
Get the estimated amount of time in milliseconds until the next level at the current hourly rate.static boolean
hasStarted(Skill skill)
Checks if a skill has tracking started successfullystatic void
reset(Skill s)
Resets the current values of a Skill in the trackerstatic void
resetAll()
Sets all skill trackers to 0static void
start()
Starts tracking all skills, will reset the tracker if already startedstatic void
start(boolean reset)
Starts tracking all skills with option to reset values if skill has been previously startedstatic void
start(Skill s)
Starts tracking a skill, will reset the tracker if already startedstatic void
start(Skill... skill)
Starts tracking one or more skill, will reset the tracker if already startedstatic void
start(Skill s, boolean reset)
Starts tracking a skill with option to reset values if skill has been previously started
-
-
-
Method Detail
-
start
public static void start()
Starts tracking all skills, will reset the tracker if already started
-
start
public static void start(boolean reset)
Starts tracking all skills with option to reset values if skill has been previously started- Parameters:
reset
- True if you want to reset currently tracked values, else will only reset if not started
-
start
public static void start(Skill s)
Starts tracking a skill, will reset the tracker if already started- Parameters:
s
- Skill to track
-
start
public static void start(Skill... skill)
Starts tracking one or more skill, will reset the tracker if already started- Parameters:
skill
- Skill(s) to start
-
start
public static void start(Skill s, boolean reset)
Starts tracking a skill with option to reset values if skill has been previously started- Parameters:
s
- Skill to trackreset
- True if you want to reset currently tracked values, else will only reset if not started
-
reset
public static void reset(Skill s)
Resets the current values of a Skill in the tracker- Parameters:
s
- Skill to reset
-
resetAll
public static void resetAll()
Sets all skill trackers to 0
-
getGainedExperience
public static long getGainedExperience(Skill s)
Gets the gained experience since skill tracking began- Parameters:
s
- Skill to get the experience of- Returns:
- long value of experience gained
-
getGainedExperiencePerHour
public static int getGainedExperiencePerHour(Skill s)
Gets gained experience per hour based on Skill start time- Parameters:
s
- Skill to get experience per hour of- Returns:
- Integer value of experience gained per hour
-
getTimeToLevel
public static long getTimeToLevel(Skill s)
Get the estimated amount of time in milliseconds until the next level at the current hourly rate.- Parameters:
s
- The skill to get the next level time.- Returns:
- The amount of time in milliseconds until the next level at the current hourly rate.
-
getStartTime
public static long getStartTime(Skill s)
Gets the start time of the Skill- Parameters:
s
- Skill to get start time of- Returns:
- long value of Start time in ms
-
getStartExperience
public static int getStartExperience(Skill s)
Gets the starting experience value of the Skill.- Parameters:
s
- Skill to get starting experience of.- Returns:
- long value of starting experience.
-
getStartLevel
public static int getStartLevel(Skill s)
Gets the Starting level of the Skill- Parameters:
s
- Skill to get the starting level of- Returns:
- Integer value of Starting level
-
getGainedLevels
public static int getGainedLevels(Skill s)
Gets gained levels of Skill- Parameters:
s
- Skill to get gained levels of- Returns:
- gained levels
-
hasStarted
public static boolean hasStarted(Skill skill)
Checks if a skill has tracking started successfully- Parameters:
skill
- Skill to check if it has been started- Returns:
- true if the tracker has started, false otherwise
-
-