Enum CameraBehaviors
- java.lang.Object
-
- java.lang.Enum<CameraBehaviors>
-
- be.yildizgames.module.graphic.camera.CameraBehaviors
-
- All Implemented Interfaces:
Serializable,Comparable<CameraBehaviors>
public enum CameraBehaviors extends Enum<CameraBehaviors>
Provide the different predefined camera behaviors.- Author:
- Grégory Van den Borre
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CameraBehaviorgetBehavior()static CameraBehaviorsvalueOf(String name)Returns the enum constant of this type with the specified name.static CameraBehaviors[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FREEFLY
public static final CameraBehaviors FREEFLY
-
TPS
public static final CameraBehaviors TPS
-
FPS
public static final CameraBehaviors FPS
-
RTS
public static final CameraBehaviors RTS
-
FIXED
public static final CameraBehaviors FIXED
With this behavior, once the camera position and target position have been set, they are locked and can no longer be modified.
-
TARGET
public static final CameraBehaviors TARGET
-
-
Method Detail
-
values
public static CameraBehaviors[] 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 (CameraBehaviors c : CameraBehaviors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CameraBehaviors valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getBehavior
public CameraBehavior getBehavior()
-
-