|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectVehicle
Batmobile
public class Batmobile
A Batmobile to drive down the road. Nannanananannannannannannnnanan BATMAN!!
Field Summary |
---|
Fields inherited from class Vehicle |
---|
facingRight, position, speed |
Constructor Summary | |
---|---|
Batmobile()
Creates a new Batmobile object. |
Method Summary | |
---|---|
void |
draw(Canvas canvas)
Draws the Car on the given Canvas |
void |
drive()
Drive the Batmobile down the road. |
void |
turn()
Turns the Batmobile. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Batmobile()
Method Detail |
---|
public void draw(Canvas canvas)
draw
in class Vehicle
canvas
- The canvas on which to drawpublic void drive()
drive
in class Vehicle
public void turn()
turn
in class Vehicle
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |