Package com.prineside.tdi2
Class Path.Connection
java.lang.Object
com.badlogic.gdx.ai.pfa.DefaultConnection<PathNode>
com.prineside.tdi2.Path.Connection
- All Implemented Interfaces:
com.badlogic.gdx.ai.pfa.Connection<PathNode>
- Enclosing class:
- Path
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.badlogic.gdx.ai.pfa.DefaultConnection
fromNode, toNode
-
Constructor Summary
ConstructorsConstructorDescriptionConnection
(Map map, int fromNodeIdx, int toNodeIdx, boolean isTeleport, float cost) -
Method Summary
Modifier and TypeMethodDescriptionfloat
getCost()
Returns the non-negative cost of this connectionReturns the node that this connection came fromReturns the node that this connection leads to
-
Field Details
-
map
-
isTeleport
public boolean isTeleport -
cost
public float cost -
fromIdx
public int fromIdx -
toIdx
public int toIdx
-
-
Constructor Details
-
Connection
-
-
Method Details
-
getCost
public float getCost()Description copied from interface:com.badlogic.gdx.ai.pfa.Connection
Returns the non-negative cost of this connection -
getFromNode
Description copied from interface:com.badlogic.gdx.ai.pfa.Connection
Returns the node that this connection came from -
getToNode
Description copied from interface:com.badlogic.gdx.ai.pfa.Connection
Returns the node that this connection leads to
-