game
Class MovingGraphic
java.lang.Object
game.MovingBody
game.MovingGraphic
- All Implemented Interfaces:
- Animated
- Direct Known Subclasses:
- Dart, SimpleBalloon
public class MovingGraphic
- extends MovingBody
A MovingBody in the form of a single Shape that responds to ticks by setting its location
- Author:
- cytron
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MovingGraphic
public MovingGraphic(Controller controller,
Trackable t,
Graphic s,
Point ul,
Point lr)
- Manage an animated Shape.
- Parameters:
controller - Shape will be added to the controller's displayed shapest - The trajectory trackings - The shapeul - Upper left corner of visible boxlr - Lower right corner of visible box
respondAfterTick
public void respondAfterTick()
- Responds to a tick by updating the location of this shape.
- Specified by:
respondAfterTick in class MovingBody
respondToDeath
public void respondToDeath()
- Responds to death by removing the same from the controller.
- Specified by:
respondToDeath in class MovingBody
getShape
public Graphic getShape()