Class LocationLockCamera
java.lang.Object
de.gurkenlabs.litiengine.graphics.Camera
de.gurkenlabs.litiengine.graphics.LocationLockCamera
- All Implemented Interfaces:
ICamera, IUpdateable, Tweenable
The Class LocalPlayerCamera.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ICamera
ICamera.FocusChangedListener, ICamera.ZoomChangedListener -
Field Summary
Fields inherited from interface IUpdateable
DEFAULT_UPDATE_PRIORITY -
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 Camera
clampToMap, getClampAlign, getClampValign, getFocus, getMapLocation, getPixelOffsetX, getPixelOffsetY, getTweenValues, getViewport, getViewportDimensionCenter, getViewportHeight, getViewportLocation, getViewportWidth, getZoom, isClampToMap, onFocus, onZoom, pan, pan, panTime, removeFocusListener, removeZoomListener, setClampAlign, setClampToMap, setFocus, setFocus, setTweenValues, setZoom, shake, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICamera
getRenderScale, getViewportLocation, getViewportLocationMethods inherited from interface IUpdateable
getUpdatePriority
-
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
-