Class CameraControlData
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.camera.CameraControlData
- All Implemented Interfaces:
Lifecycle
,Printable
,ComponentFinder
,EntityFinder
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
float
float
float
boolean
boolean
float
float
float
float
float
float
float
float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getMaxX()
Returns the maximum X position for the camera.float
getMaxY()
Returns the maximum Y position for the camera.float
getMinX()
Returns the minimum X position for the camera.float
getMinY()
Returns the minimum Y position for the camera.void
setBounds
(float x, float y, float width, float height) Sets the bounds of this camera.Methods inherited from class dev.prozilla.pine.core.component.Component
equals, getCamera, getChildWithTag, getComponent, getComponentInParent, getComponentInParent, getComponents, getComponentsInChildren, getEntity, getInput, getLogger, getName, getParentWithTag, getRenderer, getTimer, getTracker, getTransform, getWindow, getWorld, hashCode, setActive, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
movementSpeed
public float movementSpeed -
velocityDamping
public float velocityDamping -
disableControlsOnPause
public boolean disableControlsOnPause -
zoomSpeed
public float zoomSpeed -
minZoom
public float minZoom -
maxZoom
public float maxZoom -
targetX
public float targetX -
targetY
public float targetY -
targetZoom
public float targetZoom -
enableBounds
public boolean enableBounds -
boundsX
public float boundsX -
boundsY
public float boundsY -
boundsWidth
public float boundsWidth -
boundsHeight
public float boundsHeight -
keyBindings
-
-
Constructor Details
-
CameraControlData
public CameraControlData()
-
-
Method Details
-
getMinX
public float getMinX()Returns the minimum X position for the camera.- Returns:
- X position
-
getMaxX
public float getMaxX()Returns the maximum X position for the camera.- Returns:
- X position
-
getMinY
public float getMinY()Returns the minimum Y position for the camera.- Returns:
- Y position
-
getMaxY
public float getMaxY()Returns the maximum Y position for the camera.- Returns:
- Y position
-
setBounds
public void setBounds(float x, float y, float width, float height) Sets the bounds of this camera.
-