Package blockly_robot.robot.logic.level
Enum Class Difficulty
- All Implemented Interfaces:
Serializable,Comparable<Difficulty>,Constable
Der Schwierigkeitsgrad
-
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 TypeMethodDescriptionintgetIndex()Returns the index (0: EASY, 1: MEDIUM, 2: HARD) of the difficulty level.static DifficultyindexOf(int difficulty) static Difficultystatic Difficultystatic DifficultyReturns the enum constant of this class with the specified name.static Difficulty[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EASY
Leichter Schwierigkeitsgrad: Zweistern-Version (Version**, easy). -
MEDIUM
Mittlerer Schwierigkeitsgrad: Dreistern-Version (Version***, medium) -
HARD
Schwerer Schwierigkeitsgrad: Vierstern-Version (Version****, hard).
-
-
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
-
indexOf
-
indexOf
-
indexOf
-
getIndex
public int getIndex()Returns the index (0: EASY, 1: MEDIUM, 2: HARD) of the difficulty level.- Returns:
- the index of the difficulty level
-