Enum 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
      ANIM
      This GameObject has an animation defined.
      ARCHETYPE_ANIM
      This GameObject is animated but doesn't define an animation and thus inherited the animation from its archetype.
      ARCHETYPE_FACE
      This GameObject has no face defined and thus inherited the face from its archetype.
      FACE
      This GameObject has a normal face defined.
      FACE_NOT_FOUND
      The face of this GameObject was not found.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FaceSource valueOf​(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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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 name
        java.lang.NullPointerException - if the argument is null