game
Class Dart

java.lang.Object
  extended by game.MovingBody
      extended by game.MovingGraphic
          extended by game.Dart
All Implemented Interfaces:
Animated

public class Dart
extends MovingGraphic

Why could I not extend Rectangle for this class? Even if I could, why would I not do that?


Field Summary
 
Fields inherited from class game.MovingBody
lr, outOfBounds, start, ul
 
Constructor Summary
Dart(Controller controller, Trajectory t, Point ul, Point lr)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class game.MovingGraphic
getShape, respondAfterTick, respondToDeath
 
Methods inherited from class game.MovingBody
die, getLocation, getStart, inBounds, isDone, setTrajectory, tick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dart

public Dart(Controller controller,
            Trajectory t,
            Point ul,
            Point lr)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object