Package | Description |
---|---|
game |
Modifier and Type | Method and Description |
---|---|
Edge[] |
Board.getAIntersection()
Return a 2x1 array of edges that have lines that intersect.
|
Edge |
Node.getConnect(Node other)
Return the road that this node shares with node other (null if not connected).
|
Edge |
Board.getRandomEdge()
Return a random edge in this board
|
Edge |
Node.getRandomExit()
Return a random edge from leaving this node (its exists)
|
Edge |
Truck.getTravelingAlong()
Return the edge this Truck is traveling along.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashSet<Edge> |
Manager.getEdges()
Return the Edges in this Game,
|
java.util.HashSet<Edge> |
Board.getEdges()
Return the set of Edges in this board.
|
java.util.HashSet<Edge> |
Node.getExits()
Return a copy of the set of edges leaving this node.
|
Modifier and Type | Method and Description |
---|---|
void |
Truck.addToTravel(Edge r)
Add road r to this Truck's travel plans, in a fashion that prevents
thread collision.
|
boolean |
Node.isExit(Edge r)
Return true iff r is connected to this Node.
|
boolean |
Edge.sharesExit(Edge r)
Return true iff this Edge and r share an exit.
|
Modifier and Type | Method and Description |
---|---|
void |
Truck.setTravelQueue(java.util.List<Edge> path)
Clear the Travel queue, then
Set the travel queue to travel the given list of edges, in order.
|