Class FreeFlightCamera
java.lang.Object
de.gurkenlabs.litiengine.graphics.Camera
de.gurkenlabs.litiengine.graphics.FreeFlightCamera
- All Implemented Interfaces:
ICamera,IUpdateable
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.gurkenlabs.litiengine.graphics.ICamera
ICamera.FocusChangedListener, ICamera.ZoomChangedListener -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of theFreeFlightCamera.FreeFlightCamera(double x, double y) Initializes a new instance of theFreeFlightCamerawith the specified initial focus.FreeFlightCamera(Point2D focus) Initializes a new instance of theFreeFlightCamerawith the specified initial focus. -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublevoidsetScrollPadding(double scrollPadding) voidsetVelocity(double velocity) voidupdate()This method is called by the game loop on all objects that are attached to the loop.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, updateFocusMethods 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
-
FreeFlightCamera
public FreeFlightCamera()Initializes a new instance of theFreeFlightCamera. -
FreeFlightCamera
public FreeFlightCamera(double x, double y) Initializes a new instance of theFreeFlightCamerawith the specified initial focus.- Parameters:
x- The x-coordinate of the initial focus of this instance.y- The y-coordinate of the initial focus of this instance.
-
FreeFlightCamera
Initializes a new instance of theFreeFlightCamerawith the specified initial focus.- Parameters:
focus- The initial focus of this instance.
-
-
Method Details
-
getVelocity
public double getVelocity() -
getScrollPadding
public double getScrollPadding() -
setVelocity
public void setVelocity(double velocity) -
setScrollPadding
public void setScrollPadding(double scrollPadding) -
update
public void update()Description copied from interface:IUpdateableThis method is called by the game loop on all objects that are attached to the loop. It's called on every tick of the loop and the frequency can be configured using theClientConfiguration.- Specified by:
updatein interfaceIUpdateable- Overrides:
updatein classCamera- See Also:
-