Class TravellingVessel
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.sea.TravellingVessel
-
public class TravellingVessel extends java.lang.Object
- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Jan 08, 2016
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<javafx.geometry.Point2D>
calculatablePath
List of points representing the path.private javafx.scene.shape.Path
drwawablePath
Path that can be used to display on the map.private javafx.beans.property.DoubleProperty
positionOnPath
Value between 0 and 1 indicating the position of the path.private INavigableVessel
vessel
-
Constructor Summary
Constructors Constructor Description TravellingVessel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getPositionOnPath()
javafx.beans.property.DoubleProperty
positionOnPathProperty()
void
setPositionOnPath(double positionOnPath)
-
-
-
Field Detail
-
vessel
private final INavigableVessel vessel
-
drwawablePath
private javafx.scene.shape.Path drwawablePath
Path that can be used to display on the map. This path is smoothed.
-
calculatablePath
private java.util.List<javafx.geometry.Point2D> calculatablePath
List of points representing the path. This list is used to calculate the position of the vessel.
-
positionOnPath
private javafx.beans.property.DoubleProperty positionOnPath
Value between 0 and 1 indicating the position of the path.
-
-