Enum Kommandos
- java.lang.Object
-
- java.lang.Enum<Kommandos>
-
- Kommandos
-
- All Implemented Interfaces:
Serializable
,Comparable<Kommandos>
enum Kommandos extends Enum<Kommandos>
Kommandos von Kontroller an Model- Version:
- 1.0
- Author:
- Albert Wiedemann
-
-
Enum Constant Summary
Enum Constants Enum Constant Description handwaffeWeglegen
kampfAbbrechen
keinKommando
schatzAktivieren
schatzDalassen
schatzMitnehmen
schutzwaffeWeglegen
spielAbbrechen
weiterKämpfen
zimmerWechsel
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Kommandos
valueOf(String name)
Returns the enum constant of this type with the specified name.static Kommandos[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
keinKommando
public static final Kommandos keinKommando
-
spielAbbrechen
public static final Kommandos spielAbbrechen
-
zimmerWechsel
public static final Kommandos zimmerWechsel
-
schatzAktivieren
public static final Kommandos schatzAktivieren
-
weiterKämpfen
public static final Kommandos weiterKämpfen
-
kampfAbbrechen
public static final Kommandos kampfAbbrechen
-
schatzMitnehmen
public static final Kommandos schatzMitnehmen
-
schatzDalassen
public static final Kommandos schatzDalassen
-
handwaffeWeglegen
public static final Kommandos handwaffeWeglegen
-
schutzwaffeWeglegen
public static final Kommandos schutzwaffeWeglegen
-
-
Method Detail
-
values
public static Kommandos[] 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 (Kommandos c : Kommandos.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Kommandos 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
-
-