Enum Class Arma

All Implemented Interfaces:
Serializable, Comparable<Arma>, Constable

public enum Arma extends Enum<Arma>
Enumerado que representa las armas utilizadas por los Pink Guards.

Cada constante del enumerado representa un arma con su descripción correspondiente.

Version:
1.0
Author:
Mikael
See Also:
  • Enum Constant Details

    • GLOCK17

      public static final Arma GLOCK17
      Representa la Pistola Glock 17.
    • MP5

      public static final Arma MP5
      Representa el Rifle de asalto Heckler invalid input: '&' Koch MP5.
    • G3

      public static final Arma G3
      Representa el Rifle automático Heckler invalid input: '&' Koch G3.
  • Method Details

    • values

      public static Arma[] 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

      public static Arma valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Devuelve la descripción del arma.
      Overrides:
      toString in class Enum<Arma>
      Returns:
      La descripción del arma.