Package rekit.core
Enum Class Team
- All Implemented Interfaces:
Serializable
,Comparable<Team>
,Constable
This enum defines all different teams and their relationships.
- Author:
- Dominik Fuchss
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
This class defines a range to define z-layers.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Check whether team t is a hostile of this team.final boolean
Is this theTeam
neutral (no interactions possible).static Team
Returns the enum constant of this class with the specified name.static Team[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER
The player itself. -
ENEMY
An enemy of the player. -
INANIMATE
An inanimate. -
PICKUP
A pickup. -
BACKGROUND
A background object. -
TRIGGER
A trigger. -
EFFECT
An special effect.
-
-
Field Details
-
zRange
The z-range of this type of Element.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isHostile
Check whether team t is a hostile of this team.- Parameters:
t
- the other team- Returns:
true
, if hostilefalse
otherwise
-
isNeutral
public final boolean isNeutral()Is this theTeam
neutral (no interactions possible).- Returns:
true
if neutral,false
otherwise
-