@Component
@Lazy
@DependentInitialisation(ch.sahits.game.openpatrician.model.initialisation.StartNewGameBean.class)
public class AStar
extends java.lang.Object
| Constructor | Description |
|---|---|
AStar() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<javafx.geometry.Point2D> |
findPath(javafx.geometry.Point2D source,
javafx.geometry.Point2D destination) |
Implements the A-star algorithm and returns the path from source to destination
|
public java.util.List<javafx.geometry.Point2D> findPath(javafx.geometry.Point2D source,
javafx.geometry.Point2D destination)
source - the source nodeiddestination - the destination nodeidCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.