Class LocationLockCamera
java.lang.Object
de.gurkenlabs.litiengine.graphics.Camera
de.gurkenlabs.litiengine.graphics.LocationLockCamera
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.gurkenlabs.litiengine.graphics.ICamera
ICamera.FocusChangedListener, ICamera.ZoomChangedListener -
Constructor Summary
ConstructorsConstructorDescriptionLocationLockCamera(IEntity entity) Initializes a new instance of theLocationLockCamera. -
Method Summary
Modifier and TypeMethodDescriptionprotected Point2DvoidCurrently 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
-
LocationLockCamera
Initializes a new instance of theLocationLockCamera.- 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
-