Class Batmobile

java.lang.Object
  extended by Vehicle
      extended by Batmobile

public class Batmobile
extends Vehicle

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

Batmobile

public Batmobile()
Creates a new Batmobile object.

Method Detail

draw

public void draw(Canvas canvas)
Draws the Car on the given Canvas

Overrides:
draw in class Vehicle
Parameters:
canvas - The canvas on which to draw

drive

public void drive()
Drive the Batmobile down the road. The Batmobile may be zooming.

Overrides:
drive in class Vehicle

turn

public void turn()
Turns the Batmobile. The Batmobile "zooms" after it turns.

Overrides:
turn in class Vehicle