import java.awt.Point; class Ball extends MovableObject implements Harmful { boolean isBeingHeld; Ball(Point loc) { super(0, 0, loc); this.isBeingHeld = false; } public String toString() { return super.toString() + " going " + this.speed + " pixels per second"; } void update() { this.moveForward(); if (this.speed > 0) this.speed--; this.draw(); } void draw() { //System.out.println("Ball is at " + this.location + " facing " + this.direction + " degrees and moving at " + this.speed + " pixels per second"); } public int getDamageAmount() { return -200; } char getAppearance() { return 'o'; } }