Package com.treescrub.spedran.data
Enum VariableScope.ScopeType
- java.lang.Object
-
- java.lang.Enum<VariableScope.ScopeType>
-
- com.treescrub.spedran.data.VariableScope.ScopeType
-
- All Implemented Interfaces:
Serializable,Comparable<VariableScope.ScopeType>
- Enclosing class:
- VariableScope
public static enum VariableScope.ScopeType extends Enum<VariableScope.ScopeType>
The type of scope that a variable has.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_LEVELSApplies to runs that do have levels.FULL_GAMEApplies only to runs that don't have levels.GLOBALApplies to every run in the game.SINGLE_LEVELApplies only to one specific level.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VariableScope.ScopeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static VariableScope.ScopeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GLOBAL
public static final VariableScope.ScopeType GLOBAL
Applies to every run in the game.
-
FULL_GAME
public static final VariableScope.ScopeType FULL_GAME
Applies only to runs that don't have levels.
-
ALL_LEVELS
public static final VariableScope.ScopeType ALL_LEVELS
Applies to runs that do have levels.
-
SINGLE_LEVEL
public static final VariableScope.ScopeType SINGLE_LEVEL
Applies only to one specific level.
-
-
Method Detail
-
values
public static VariableScope.ScopeType[] 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 (VariableScope.ScopeType c : VariableScope.ScopeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VariableScope.ScopeType 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
-
-