Package rekit.core

Enum Class Team

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

public enum Team extends Enum<Team>
This enum defines all different teams and their relationships.
Author:
Dominik Fuchss
  • Enum Constant Details

    • PLAYER

      public static final Team PLAYER
      The player itself.
    • ENEMY

      public static final Team ENEMY
      An enemy of the player.
    • INANIMATE

      public static final Team INANIMATE
      An inanimate.
    • PICKUP

      public static final Team PICKUP
      A pickup.
    • BACKGROUND

      public static final Team BACKGROUND
      A background object.
    • TRIGGER

      public static final Team TRIGGER
      A trigger.
    • EFFECT

      public static final Team EFFECT
      An special effect.
  • Field Details

    • zRange

      public final Team.Range zRange
      The z-range of this type of Element.
  • Method Details

    • values

      public static Team[] 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 Team 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
    • isHostile

      public final boolean isHostile(Team t)
      Check whether team t is a hostile of this team.
      Parameters:
      t - the other team
      Returns:
      true, if hostile false otherwise
    • isNeutral

      public final boolean isNeutral()
      Is this the Team neutral (no interactions possible).
      Returns:
      true if neutral, false otherwise