public class PositionLockCamera extends Camera
ICamera.FocusChangedListener, ICamera.ZoomChangedListener
Constructor and Description |
---|
PositionLockCamera(IEntity entity)
Initializes a new instance of the
PositionLockCamera . |
Modifier and Type | Method and Description |
---|---|
protected java.awt.geom.Point2D |
getLockedCameraLocation() |
IEntity |
getLockedEntity() |
void |
updateFocus()
Currently an update function for the shake effect.
|
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRenderScale, getViewportLocation, getViewportLocation
public PositionLockCamera(IEntity entity)
PositionLockCamera
.entity
- The entity to which the focus will be locked.public IEntity getLockedEntity()
public void updateFocus()
ICamera
updateFocus
in interface ICamera
updateFocus
in class Camera
protected java.awt.geom.Point2D getLockedCameraLocation()