Enum Class FlixelSpriteGroup.RotationMode

java.lang.Object
java.lang.Enum<FlixelSpriteGroup.RotationMode>
me.stringdotjar.flixelgdx.group.FlixelSpriteGroup.RotationMode
All Implemented Interfaces:
Serializable, Comparable<FlixelSpriteGroup.RotationMode>, Constable
Enclosing class:
FlixelSpriteGroup

public static enum FlixelSpriteGroup.RotationMode extends Enum<FlixelSpriteGroup.RotationMode>
Controls how a FlixelSpriteGroup's rotation affects its members.
  • Enum Constant Details

    • INDIVIDUAL

      public static final FlixelSpriteGroup.RotationMode INDIVIDUAL
      Rotation delta is applied to each sprite's individual rotation. No positional changes occur.
    • WHEEL

      public static final FlixelSpriteGroup.RotationMode WHEEL
      Sprites are arranged in a radial pattern around the group center. Each sprite is positioned at FlixelSpriteGroup.rotationRadius from the center, spaced evenly around 360 degrees. Positions and rotations are set absolutely each frame in FlixelSpriteGroup.update(float).

      Individual sprite rotations cannot be changed independently in this mode.

    • ORBIT

      public static final FlixelSpriteGroup.RotationMode ORBIT
      All sprites orbit around the group origin as a rigid body. When the rotation changes, each sprite's position is rotated around the center by the delta, and its individual rotation is adjusted by the same amount.
  • Method Details

    • values

      public static FlixelSpriteGroup.RotationMode[] 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 FlixelSpriteGroup.RotationMode 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