Class PositionLockCamera
java.lang.Object
de.gurkenlabs.litiengine.graphics.Camera
de.gurkenlabs.litiengine.graphics.PositionLockCamera
- All Implemented Interfaces:
ICamera,IUpdateable
public class PositionLockCamera
extends CameraThe Class LocalPlayerCamera.
Nested Class Summary
Nested classes/interfaces inherited from interface de.gurkenlabs.litiengine.graphics.ICamera
ICamera.FocusChangedListener, ICamera.ZoomChangedListenerConstructor Summary
Constructors Constructor Description PositionLockCamera(IEntity entity)Initializes a new instance of thePositionLockCamera.Method Summary
Modifier and Type Method Description protected java.awt.geom.Point2DgetLockedCameraLocation()IEntitygetLockedEntity()voidupdateFocus()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, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ICameraCurrently an update function for the shake effect.- Specified by:
updateFocusin interfaceICamera- Overrides:
updateFocusin classCamera
getLockedCameraLocation
protected java.awt.geom.Point2D getLockedCameraLocation()
