public static interface AchievementLibrary.Achievement
Modifier and Type | Method | Description |
---|---|---|
boolean |
canApplyTo(AccountStats.Agent agent) |
Returns whether this achievement can be applied to the
given agent type.
|
boolean |
canBeSeenBy(MOB mob) |
Returns whether this achievement can be seen in lists
by the given mob, and whether, if it is achieved, an
announcement is given to the player.
|
AccountStats.Agent |
getAgent() |
Returns whether this is a player or account achievement.
|
java.lang.String |
getDisplayStr() |
Returns the friendly display name of this achievement.
|
int |
getDuration() |
For achievements that are repeatable,
this is the duration of the tattoo.
|
AchievementLibrary.Event |
getEvent() |
Returns the event that defines the general type of this achievement.
|
java.lang.String |
getRawParmVal(java.lang.String str) |
Allows access to the parameters passed into this
achievement to create it.
|
AchievementLibrary.Award[] |
getRewards() |
Returns the list of coded awards given to players who
complete this achievement.
|
int |
getTargetCount() |
For achievements that require tracking progress,
this returns the target count that the tracker
must report.
|
java.lang.String |
getTattoo() |
Gets the tattoo that is added to players or accounts to designate
that this achievement has been completed.
|
AchievementLibrary.Tracker |
getTracker(int oldCount) |
Creates a new tracker object with the given progress count as
the default/starting value.
|
boolean |
isFlag(AchievementLibrary.AchievementFlag flag) |
Returns whether the given achievment flag applies
to this achievement.
|
boolean |
isSavableTracker() |
Returns true if this achievement requires progress
tracking, which means it must be saved with the player
and/or account record to keep track of.
|
boolean |
isTargetFloor() |
Returns true if this achievement is completed
when the tracker count is > than the target count,
and false if the opposite is true.
|
java.lang.String |
parseParms(java.lang.String parms) |
Parses the parameters defined by the event type of this achievement
to produce the unique achievement that this is.
|
AccountStats.Agent getAgent()
AccountStats.Agent
AchievementLibrary.Event getEvent()
AchievementLibrary.Event
java.lang.String getTattoo()
boolean canBeSeenBy(MOB mob)
mob
- the mob to check forboolean canApplyTo(AccountStats.Agent agent)
agent
- the agent typeAchievementLibrary.Tracker getTracker(int oldCount)
oldCount
- the initial value for progress, if applicablegetTargetCount()
java.lang.String parseParms(java.lang.String parms)
parms
- the parameter values to parseAchievementLibrary.Event.getParameters()
,
getRawParmVal(String)
java.lang.String getDisplayStr()
AchievementLibrary.Award[] getRewards()
AchievementLibrary.Award
int getTargetCount()
boolean isTargetFloor()
boolean isSavableTracker()
java.lang.String getRawParmVal(java.lang.String str)
str
- the name of the parameter to queryAchievementLibrary.Event.getParameters()
,
parseParms(String)
int getDuration()
boolean isFlag(AchievementLibrary.AchievementFlag flag)
flag
- the flag