ch.sahits.game.graphic.image.model.MapGridAStarGraphProvider, AStarHeuristicProviderpublic abstract class BaseGraphCalulationService
extends java.lang.Object
implements ch.sahits.game.graphic.image.model.MapGrid
| Modifier and Type | Field | Description |
|---|---|---|
protected ch.sahits.game.graphic.image.IMapImageServiceFacade |
imageService |
|
protected ch.sahits.game.openpatrician.model.map.IMap |
map |
|
protected com.google.common.collect.Interner<javafx.geometry.Point2D> |
pointInterner |
| Constructor | Description |
|---|---|
BaseGraphCalulationService() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract double |
calculateWeight(javafx.geometry.Point2D from,
javafx.geometry.Point2D to) |
Calculate the weight between two nodes.
|
protected javafx.geometry.Point2D |
getPoint(double x,
double y) |
|
protected java.util.List<ch.sahits.game.graphic.image.ECircleSegment> |
getSegments(javafx.geometry.Point2D from,
javafx.geometry.Point2D to) |
|
protected java.util.List<ch.sahits.game.graphic.image.ECircleSegment> |
getTangentialSegments(javafx.geometry.Point2D from,
javafx.geometry.Point2D to) |
|
boolean |
isOnSea(javafx.geometry.Point2D point) |
Verify that a location is actually on sea.
|
@Autowired protected ch.sahits.game.graphic.image.IMapImageServiceFacade imageService
@Autowired protected ch.sahits.game.openpatrician.model.map.IMap map
@Autowired protected com.google.common.collect.Interner<javafx.geometry.Point2D> pointInterner
protected javafx.geometry.Point2D getPoint(double x,
double y)
protected abstract double calculateWeight(javafx.geometry.Point2D from,
javafx.geometry.Point2D to)
from - source nodeto - destination nodefrom to toprotected java.util.List<ch.sahits.game.graphic.image.ECircleSegment> getSegments(javafx.geometry.Point2D from,
javafx.geometry.Point2D to)
protected java.util.List<ch.sahits.game.graphic.image.ECircleSegment> getTangentialSegments(javafx.geometry.Point2D from,
javafx.geometry.Point2D to)
public boolean isOnSea(javafx.geometry.Point2D point)
point - to be checkedCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.