Class NodeData<T>
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.sea.model.NodeData<T>
-
- Type Parameters:
T-
public final class NodeData<T> extends java.lang.ObjectNodeData stores all information of the node needed by the AStar algorithm. This information includes the value of g, h, and f. However, the value of all 3 variables are dependent on source and destination, thus obtains at runtime.- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Dec 31, 2015
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalcF(T destination, T source)doublegetG(T source)voidsetG(T source, double g)
-