Class RangeCameraTarget

java.lang.Object
rekit.logic.gameelements.RangeCameraTarget
All Implemented Interfaces:
CameraTarget

public final class RangeCameraTarget extends Object implements CameraTarget
This class can be used for set the range camera target (e.g. for BossRooms etc.).
  • Constructor Details

    • RangeCameraTarget

      public RangeCameraTarget(float min, float max, CameraTarget hint)
      Create by range and hint target.
      Parameters:
      min - the minimum value of getCameraOffset()
      max - the maximum value of getCameraOffset()
      hint - the target which shall focused within the range
  • Method Details

    • getCameraOffset

      public float getCameraOffset()
      Description copied from interface: CameraTarget
      Get the current camera offset.
      Specified by:
      getCameraOffset in interface CameraTarget
      Returns:
      the current camera offset