Package rekit.logic.gameelements
Class RangeCameraTarget
java.lang.Object
rekit.logic.gameelements.RangeCameraTarget
- All Implemented Interfaces:
CameraTarget
This class can be used for set the range camera target (e.g. for BossRooms
etc.).
-
Constructor Summary
ConstructorsConstructorDescriptionRangeCameraTarget(float min, float max, CameraTarget hint) Create by range and hint target. -
Method Summary
-
Constructor Details
-
RangeCameraTarget
Create by range and hint target.- Parameters:
min- the minimum value ofgetCameraOffset()max- the maximum value ofgetCameraOffset()hint- the target which shall focused within the range
-
-
Method Details
-
getCameraOffset
public float getCameraOffset()Description copied from interface:CameraTargetGet the current camera offset.- Specified by:
getCameraOffsetin interfaceCameraTarget- Returns:
- the current camera offset
-