Package | Description |
---|---|
game |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Truck> |
Manager.getTrucks()
Return the Trucks in this Game.
|
java.util.ArrayList<Truck> |
Board.getTrucks()
Return the trucks on this board.
|
java.util.ArrayList<Truck> |
Board.getTrucksOnDepot()
Return the alive trucks on this board that are currently on Truck Depot node
(an empty arrayList if there are no such trucks).
|
Modifier and Type | Method and Description |
---|---|
boolean |
Truck.isTruckHere(Truck t)
Return true for this and return false for other trucks,
because a truck is always "at" itself.
|
boolean |
Parcel.isTruckHere(Truck t)
Return true iff t currently holds this Parcel.
|
boolean |
Node.isTruckHere(Truck t)
Return true iff t is currently at this node.
|
boolean |
Edge.isTruckHere(Truck t)
Return true iff t is currently traveling this edge.
|
boolean |
BoardElement.isTruckHere(Truck t)
Return true iff t is currently at/on this BoardElement.
|
abstract void |
Manager.truckNotification(Truck t,
Manager.Notification message)
Called by Truck t to notify the manager that something has occurred.
|