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

public class CameraControlData extends Component
  • 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.