Class LocationLockCamera

java.lang.Object
de.gurkenlabs.litiengine.graphics.Camera
de.gurkenlabs.litiengine.graphics.LocationLockCamera
All Implemented Interfaces:
ICamera, IUpdateable

public class LocationLockCamera extends Camera
The Class LocalPlayerCamera.
  • Constructor Details

    • LocationLockCamera

      public LocationLockCamera(IEntity entity)
      Initializes a new instance of the LocationLockCamera.
      Parameters:
      entity - The entity to which the focus will be locked.
  • Method Details

    • getLockedEntity

      public IEntity getLockedEntity()
    • updateFocus

      public void updateFocus()
      Description copied from interface: ICamera
      Currently an update function for the shake effect.
      Specified by:
      updateFocus in interface ICamera
      Overrides:
      updateFocus in class Camera
    • getLockedCameraLocation

      protected Point2D getLockedCameraLocation()