Package net.sf.gridarta.model.gameobject
Enum FaceSource
- java.lang.Object
-
- java.lang.Enum<FaceSource>
-
- net.sf.gridarta.model.gameobject.FaceSource
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FaceSource>
public enum FaceSource extends java.lang.Enum<FaceSource>
Enumeration describing the state of the face.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANIMThis GameObject has an animation defined.ARCHETYPE_ANIMThis GameObject is animated but doesn't define an animation and thus inherited the animation from its archetype.ARCHETYPE_FACEThis GameObject has no face defined and thus inherited the face from its archetype.FACEThis GameObject has a normal face defined.FACE_NOT_FOUNDThe face of this GameObject was not found.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FaceSourcevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FaceSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FACE_NOT_FOUND
public static final FaceSource FACE_NOT_FOUND
The face of this GameObject was not found.
-
FACE
public static final FaceSource FACE
This GameObject has a normal face defined.
-
ARCHETYPE_FACE
public static final FaceSource ARCHETYPE_FACE
This GameObject has no face defined and thus inherited the face from its archetype.
-
ANIM
public static final FaceSource ANIM
This GameObject has an animation defined.
-
ARCHETYPE_ANIM
public static final FaceSource ARCHETYPE_ANIM
This GameObject is animated but doesn't define an animation and thus inherited the animation from its archetype.
-
-
Method Detail
-
values
public static FaceSource[] 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 (FaceSource c : FaceSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FaceSource valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-