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
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionConnection(Map map, int fromNodeIdx, int toNodeIdx, boolean isTeleport, float cost)  - 
Method Summary
Modifier and TypeMethodDescriptionfloatgetCost()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.ConnectionReturns the non-negative cost of this connection - 
getFromNode
Description copied from interface:com.badlogic.gdx.ai.pfa.ConnectionReturns the node that this connection came from - 
getToNode
Description copied from interface:com.badlogic.gdx.ai.pfa.ConnectionReturns the node that this connection leads to 
 -