A B C D E G I L M N O P R S T U V W

M

main(String[]) - Static method in class gui.RushHourFrame
The method responsible for constructing the visual frame and maintaining the thread as long as the frame is open.
main(String[]) - Static method in class rushhour.RushHour
Responsible for executing the application, then immedietly calls the non-static run().
mouseClicked(MouseEvent) - Method in class gui.RushHourPanel
After Add Car, Add Truck, or Remove Vehicle is pressed, the interface waits for a mouse click within the game board to place (or remove) the vehicle.
mouseDragged(MouseEvent) - Method in class gui.RushHourPanel
So long as a vehicle is not being added or removed and selectedVehicle (set on mousePressed) is not null, the selected vehicle will be dragged in the horizontal or vertical (depending on the orientation of the vehicle) direction of the vehicle as long as that drag is valid.
mouseEntered(MouseEvent) - Method in class gui.RushHourPanel
Unused, but overriden since it's abstract.
mouseExited(MouseEvent) - Method in class gui.RushHourPanel
Unused, but overriden since it's abstract.
mouseMoved(MouseEvent) - Method in class gui.RushHourPanel
If the mouse is moved within the boardPanel and a car is being added or removed, the mouse coordinates are retrieved and appropriate visual measures are taken.
mousePressed(MouseEvent) - Method in class gui.RushHourPanel
When the mouse is clicked, the interface grabs the vehicle (if any) that is located at the cursor coordinates and sets it as the selectedVehicle.
mouseReleased(MouseEvent) - Method in class gui.RushHourPanel
When the mouse click is released, the selected vhiecle (if any) is snapped to its new closest (and valid) location on the game board.
moveDown(RushHourVehicle, int) - Method in class rushhour.RushHourGameBoard
Move the specified vehicle down num space(s).
moveLeft(RushHourVehicle, int) - Method in class rushhour.RushHourGameBoard
Move the specified vehicle left num space(s).
moveRight(RushHourVehicle, int) - Method in class rushhour.RushHourGameBoard
Move the specified vehicle right num space(s).
moveUp(RushHourVehicle, int) - Method in class rushhour.RushHourGameBoard
Move the specified vehicle up num space(s).

A B C D E G I L M N O P R S T U V W