Package | Description |
---|---|
game |
Modifier and Type | Field and Description |
---|---|
Node |
Parcel.destination
The node where this parcel is to be delivered.
|
Node |
Parcel.start
The node on which this this parcel started.
|
Modifier and Type | Method and Description |
---|---|
Node |
Truck.getComingFrom()
Return the node this truck is coming from, the rear exit of the edge it
is currently on.
|
Node[] |
Edge.getExits()
Return a copy of the exits of this line, a new length 2 array of Nodes.
|
Node |
Edge.getFirstExit()
Return the first exit of this Edge.
|
Node |
Truck.getGoingTo()
Return the Truck's eventual destination; the Node this Truck will be at
when the current travel queue is empty.
|
Node |
Truck.getLocation()
Return the Truck's current location.
|
Node |
Parcel.getLocation()
Return the current location for this Parcel
|
Node |
Board.getNode(java.lang.String name)
Return the Node named
name in this board if it exists, null otherwise. |
Node |
Edge.getOther(Node n)
Return the other exit that is not equal to n.
|
Node |
Board.getRandomNode()
Return a random node in this board
|
Node |
Edge.getSecondExit()
Return the second exit of this Edge.
|
Node |
Truck.getTravelingTo()
Return the Truck's current destination.
|
Node |
Board.getTruckDepot()
Return the unique Truck Depot Node in this board, to which
Trucks must return before the game can be ended.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<Node,java.lang.Integer> |
Node.getNeighbors()
Return a map of neighboring nodes to the lengths of the edges connecting
them to this Node.
|
java.util.HashSet<Node> |
Manager.getNodes()
Return the Nodes in this Game.
|
java.util.HashSet<Node> |
Board.getNodes()
Return a HashSet containing all the Nodes in this board.
|
Modifier and Type | Method and Description |
---|---|
Edge |
Node.getConnect(Node other)
Return the road that this node shares with node other (null if not connected).
|
Node |
Edge.getOther(Node n)
Return the other exit that is not equal to n.
|
boolean |
Node.isConnectedTo(Node destination)
Return false if destination.equals(this).
|
boolean |
Edge.isExit(Node node)
Return true iff node is one of the exits of this Edge.
|
Modifier and Type | Method and Description |
---|---|
void |
Truck.setTravelPath(java.util.List<Node> path)
Clear the travel queue, then
Set the travel queue to travel the given path.
|