|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface AchievementLibrary.Achievement
The achievement interface provides basic information about the specific achievement, as defined in the achievements.ini definition file. It also allows a tracker to be created for situation where progress in the event requires tracking each player event.
Method Summary | |
---|---|
AccountStats.Agent |
getAgent()
Returns whether this is a player or account achievement. |
java.lang.String |
getDisplayStr()
Returns the friendly display name of this achievement. |
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 |
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. |
Method Detail |
---|
AccountStats.Agent getAgent()
AccountStats.Agent
AchievementLibrary.Event getEvent()
AchievementLibrary.Event
java.lang.String getTattoo()
AchievementLibrary.Tracker getTracker(int oldCount)
oldCount
- the initial value for progress, if applicable
getTargetCount()
java.lang.String parseParms(java.lang.String parms)
parms
- the parameter values to parse
AchievementLibrary.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 query
AchievementLibrary.Event.getParameters()
,
parseParms(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |