Package me.stringdotjar.flixelgdx.group
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
Controls how a
FlixelSpriteGroup's rotation affects its members.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRotation delta is applied to each sprite's individual rotation.All sprites orbit around the group origin as a rigid body.Sprites are arranged in a radial pattern around the group center. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FlixelSpriteGroup.RotationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
INDIVIDUAL
Rotation delta is applied to each sprite's individual rotation. No positional changes occur. -
WHEEL
Sprites are arranged in a radial pattern around the group center. Each sprite is positioned atFlixelSpriteGroup.rotationRadiusfrom the center, spaced evenly around 360 degrees. Positions and rotations are set absolutely each frame inFlixelSpriteGroup.update(float).Individual sprite rotations cannot be changed independently in this mode.
-
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
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
-