java.lang.Cloneable
public static interface AchievementLibrary.Tracker
extends java.lang.Cloneable
Modifier and Type | Method | Description |
---|---|---|
AchievementLibrary.Tracker |
copyOf() |
Returns a copy of this tracker, unattached to the
tracker it is a copy of.
|
AchievementLibrary.Achievement |
getAchievement() |
The achievement to which this tracker belongs.
|
int |
getCount(Tattooable tracked) |
Returns the count/score to show for the given mob.
|
boolean |
isAchieved(Tattooable tracked) |
Returns true if the given mob has completed this
achievement, even if the tattoo has not yet been
assigned.
|
boolean |
testBump(MOB mob,
Tattooable tracked,
int bumpNum,
java.lang.Object... parms) |
For events which require tracked progress, this method is
called to give this tracker a potential bump, after testing
the given mob and the given arguments to see if the
achievement deserves a bump in progress.
|
AchievementLibrary.Achievement getAchievement()
boolean isAchieved(Tattooable tracked)
tracked
- the player being checkedboolean testBump(MOB mob, Tattooable tracked, int bumpNum, java.lang.Object... parms)
mob
- the player who did something trackabletracked
- the object that can get credit/tattooedbumpNum
- the amount to bump the progress byparms
- optional arguments unique to the Eventint getCount(Tattooable tracked)
tracked
- the mob to get a count for -- required ONLY for unsavableAchievementLibrary.Tracker copyOf()