public class Connection
extends java.lang.Object
Constructor and Description |
---|
Connection(MapObj startMapObj,
MapObj endMapObj)
A connection between two adjacent MapObjs in the Map.
|
Modifier and Type | Method and Description |
---|---|
MapObj |
getDestination() |
float |
getLength() |
com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> |
getRouteBlips() |
MapObj |
getStartMapObj() |
com.badlogic.gdx.math.Vector2 |
getVector() |
boolean |
isReverseOf(Connection connection) |
public float getLength()
public com.badlogic.gdx.math.Vector2 getVector()
public MapObj getStartMapObj()
public MapObj getDestination()
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.scenes.scene2d.Actor> getRouteBlips()
public boolean isReverseOf(Connection connection)
connection
- to be compared