Enum Kommandos

    • 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 name
        NullPointerException - if the argument is null