|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use RushHourVehicle | |
|---|---|
| rushhour | |
| Uses of RushHourVehicle in rushhour |
|---|
| Methods in rushhour that return RushHourVehicle | |
|---|---|
RushHourVehicle |
RushHourGameBoard.addCar(java.lang.String color,
java.lang.String orientation,
int x,
int y)
Add a car to the game gameBoard at location (x, y). |
RushHourVehicle |
RushHourGameBoard.addTruck(java.lang.String color,
java.lang.String orientation,
int x,
int y)
Add a truck to the game gameBoard at location (x, y). |
RushHourVehicle |
RushHourGameBoard.addVehicle(java.lang.String type,
java.lang.String color,
java.lang.String orientation,
int x,
int y)
Add a vehicle to the game gameBoard at location (x, y). |
RushHourVehicle[][] |
RushHourGameBoard.getGameBoard()
Retrieve current game gameBoard. |
RushHourVehicle |
RushHourGameBoard.getVehicleAtIndex(int i)
Retrieve the vehicle at index i from the array of vehicles known to be on the gameBoard. |
RushHourVehicle |
RushHourGameBoard.getVehicleAtLocation(int x,
int y)
Check for a vehicle at location (x, y) on the game gameBoard. |
RushHourVehicle |
RushHourGameBoard.getVehicleByColor(java.lang.String color)
Retrieves the vehicle of the specified color on the gameBoard. |
| Methods in rushhour that return types with arguments of type RushHourVehicle | |
|---|---|
java.util.Vector<RushHourVehicle> |
RushHourGameBoard.getVehiclesList()
Retrieve the list of vehicles known to be on the gameBoard. |
| Methods in rushhour with parameters of type RushHourVehicle | |
|---|---|
boolean |
RushHourGameBoard.canMoveDown(RushHourVehicle vehicle,
int num)
Checks to see if the specified vehicle can move num space(s) down. |
boolean |
RushHourGameBoard.canMoveLeft(RushHourVehicle vehicle,
int num)
Checks to see if the specified vehicle can move num space(s) left. |
boolean |
RushHourGameBoard.canMoveRight(RushHourVehicle vehicle,
int num)
Checks to see if the specified vehicle can move num space(s) right. |
boolean |
RushHourGameBoard.canMoveUp(RushHourVehicle vehicle,
int num)
Checks to see if the specified vehicle can move num space(s) up. |
void |
RushHourGameBoard.moveDown(RushHourVehicle vehicle,
int num)
Move the specified vehicle down num space(s). |
void |
RushHourGameBoard.moveLeft(RushHourVehicle vehicle,
int num)
Move the specified vehicle left num space(s). |
boolean |
RushHourGameBoard.moveRight(RushHourVehicle vehicle,
int num)
Move the specified vehicle right num space(s). |
void |
RushHourGameBoard.moveUp(RushHourVehicle vehicle,
int num)
Move the specified vehicle up num space(s). |
void |
RushHourGameBoard.removeCar(RushHourVehicle car)
Remove the specified car from the game gameBoard. |
void |
RushHourGameBoard.removeTruck(RushHourVehicle truck)
Remove the specified truck from the game gameBoard. |
void |
RushHourGameBoard.removeVehicle(RushHourVehicle vehicle)
Remove the vehicle of the specified color from the game gameBoard and from the list of vehicles. |
void |
RushHourGameBoard.setGameBoard(RushHourVehicle[][] gameBoard)
Set the game board to the passed in game board. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||