Camera

public class Camera

Utilities for controlling the camera in game.

Types

RotationMethod
Link copied to clipboard
public enum RotationMethod
A rotation method for moving the camera
ZoomMethod
Link copied to clipboard
public enum ZoomMethod

Functions

getAngle
Link copied to clipboard
static int getAngle()
Gets the camera angle.
getRotation
Link copied to clipboard
static int getRotation()
Gets the camera rotation, in degrees.
getRotationMethod
Link copied to clipboard
static Camera.RotationMethod getRotationMethod()
Gets the camera rotation method
getZoomPercent
Link copied to clipboard
static double getZoomPercent()
Gets the level of zoom the camera is in.
resetZoomPercent
Link copied to clipboard
static boolean resetZoomPercent()
Resets the zoom percent by clicking the 'Restore Default Zoom' action in the options tab
setAngle
Link copied to clipboard
static void setAngle(int angle)
Sets the camera angle.
setRotation
Link copied to clipboard
static void setRotation(int degrees)
Sets the camera rotation to the specified degrees.
setRotationMethod
Link copied to clipboard
static void setRotationMethod(Camera.RotationMethod method)
Sets the rotation method
setZoomMethod
Link copied to clipboard
static void setZoomMethod(Camera.ZoomMethod zoomMethod)
Sets the camera zoom method to use when calling setZoomPercent
setZoomPercent
Link copied to clipboard
static boolean setZoomPercent(double zoomPercent)
Attempts to set the camera zoom within the options tab.

Properties

zoomMethod
Link copied to clipboard
private final static ScriptLocal<Camera.ZoomMethodzoomMethod