Package model.utilz
Enum Class Constants.Items.BubbleRewardType
- All Implemented Interfaces:
Serializable,Comparable<Constants.Items.BubbleRewardType>,Constable
- Enclosing interface:
Constants.Items
Enum representing the different types of bubble rewards.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGetBubbleRewardType(int consecutivePopsCounter) Returns the bubble reward type based on the consecutive pops counter.static intGetPoints(Constants.Items.BubbleRewardType bubbleRewardType) Returns the points associated with the given bubble reward type.Returns the enum constant of this class with the specified name.static Constants.Items.BubbleRewardType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
APPLE
-
PEPPER
-
GRAPE
-
PERSIMMON
-
CHERRY
-
MUSHROOM
-
BANANA
-
WATER_CRISTAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
GetBubbleRewardType
Returns the bubble reward type based on the consecutive pops counter.- Parameters:
consecutivePopsCounter- the number of consecutive pops- Returns:
- the corresponding bubble reward type
-
GetPoints
Returns the points associated with the given bubble reward type.- Parameters:
bubbleRewardType- the bubble reward type- Returns:
- the points associated with the bubble reward type
-