Package org.rspeer.game.component.tdi
Enum Achievement.Diary
- java.lang.Object
-
- java.lang.Enum<Achievement.Diary>
-
- org.rspeer.game.component.tdi.Achievement.Diary
-
- All Implemented Interfaces:
Serializable
,Comparable<Achievement.Diary>
,Achievement
- Enclosing interface:
- Achievement
public static enum Achievement.Diary extends Enum<Achievement.Diary> implements Achievement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.rspeer.game.component.tdi.Achievement
Achievement.Combat, Achievement.Diary, Achievement.Tier
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARDOUGNE
DESERT
FALADOR
FREMENNIK
KANDARIN
KARAMJA
KOUREND_AND_KEBOS
LUMBRIDGE_AND_DRAYNOR
MORYTANIA
VARROCK
WESTERN_PROVINCES
WILDERNESS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getProgress(Achievement.Diary diary, Achievement.Tier tier)
static boolean
isComplete(Achievement.Diary diary, Achievement.Tier tier)
static Achievement.Diary
valueOf(String name)
Returns the enum constant of this type with the specified name.static Achievement.Diary[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARDOUGNE
public static final Achievement.Diary ARDOUGNE
-
DESERT
public static final Achievement.Diary DESERT
-
FALADOR
public static final Achievement.Diary FALADOR
-
FREMENNIK
public static final Achievement.Diary FREMENNIK
-
KANDARIN
public static final Achievement.Diary KANDARIN
-
KARAMJA
public static final Achievement.Diary KARAMJA
-
KOUREND_AND_KEBOS
public static final Achievement.Diary KOUREND_AND_KEBOS
-
LUMBRIDGE_AND_DRAYNOR
public static final Achievement.Diary LUMBRIDGE_AND_DRAYNOR
-
MORYTANIA
public static final Achievement.Diary MORYTANIA
-
VARROCK
public static final Achievement.Diary VARROCK
-
WESTERN_PROVINCES
public static final Achievement.Diary WESTERN_PROVINCES
-
WILDERNESS
public static final Achievement.Diary WILDERNESS
-
-
Method Detail
-
values
public static Achievement.Diary[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Achievement.Diary c : Achievement.Diary.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Achievement.Diary valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getProgress
public static int getProgress(Achievement.Diary diary, Achievement.Tier tier)
- Parameters:
diary
- The diarytier
- The tier of the achievement- Returns:
- The progress of this achievement diary of the given tier.
Generally, a progress of
1
indicates completion
-
isComplete
public static boolean isComplete(Achievement.Diary diary, Achievement.Tier tier)
-
-