Class PositionLockCamera
java.lang.Object
de.gurkenlabs.litiengine.graphics.Camera
de.gurkenlabs.litiengine.graphics.PositionLockCamera
- All Implemented Interfaces:
ICamera
,IUpdateable
public class PositionLockCamera
extends Camera
The Class LocalPlayerCamera.
Nested Class Summary
Nested classes/interfaces inherited from interface de.gurkenlabs.litiengine.graphics.ICamera
ICamera.FocusChangedListener, ICamera.ZoomChangedListener
Constructor Summary
Constructors Constructor Description PositionLockCamera(IEntity entity)
Initializes a new instance of thePositionLockCamera
.Method Summary
Modifier and Type Method Description protected java.awt.geom.Point2D
getLockedCameraLocation()
IEntity
getLockedEntity()
void
updateFocus()
Currently an update function for the shake effect.Methods inherited from class de.gurkenlabs.litiengine.graphics.Camera
clampToMap, getClampAlign, getClampValign, getFocus, getMapLocation, getPixelOffsetX, getPixelOffsetY, getViewport, getViewportDimensionCenter, getViewportHeight, getViewportLocation, getViewportWidth, getZoom, isClampToMap, onFocus, onZoom, pan, pan, panTime, removeFocusListener, removeZoomListener, setClampAlign, setClampToMap, setFocus, setFocus, setZoom, shake, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gurkenlabs.litiengine.graphics.ICamera
getRenderScale, getViewportLocation, getViewportLocation
Constructor Details
PositionLockCamera
Initializes a new instance of thePositionLockCamera
.- Parameters:
entity
- The entity to which the focus will be locked.
Method Details
getLockedEntity
updateFocus
public void updateFocus()Description copied from interface:ICamera
Currently an update function for the shake effect.- Specified by:
updateFocus
in interfaceICamera
- Overrides:
updateFocus
in classCamera
getLockedCameraLocation
protected java.awt.geom.Point2D getLockedCameraLocation()