Enum Class EntityState

java.lang.Object
java.lang.Enum<EntityState>
dev.kyzel.game.entity.EntityState
All Implemented Interfaces:
Serializable, Comparable<EntityState>, Constable

public enum EntityState extends Enum<EntityState>
All the possible states of an entity.
  • Enum Constant Details

    • WALKING

      public static final EntityState WALKING
      Entity is walking.
    • SWIMMING

      public static final EntityState SWIMMING
      Entity is swimming.
    • ATTACKING

      public static final EntityState ATTACKING
      Entity is attacking something.
    • STANDING

      public static final EntityState STANDING
      Entity is standing still.
  • Constructor Details

    • EntityState

      private EntityState()
  • Method Details

    • values

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