game
Class CurveTracer
java.lang.Object
game.MovingBody
game.CurveTracer
- All Implemented Interfaces:
- Animated
public class CurveTracer
- extends MovingBody
A MovingBody that responds to ticks by drawing more of a curve.
The curve is drawn using straight lines between the evaluated points.
- Author:
- cytron
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lastPoint
protected Point lastPoint
painter
protected VirtualImagePainter painter
CurveTracer
public CurveTracer(Trajectory t,
Point ul,
Point lr,
VirtualImagePainter painter)
respondAfterTick
public void respondAfterTick()
- Description copied from class:
MovingBody
- Give subclasses a chance to respond to each tick
- Specified by:
respondAfterTick in class MovingBody
respondToDeath
public void respondToDeath()
- Description copied from class:
MovingBody
- Give subclasses a chance to respond to their death
- Specified by:
respondToDeath in class MovingBody
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object