tipgame.tracker
Class TrackerAdapter

java.lang.Object
  extended by tipgame.tracker.TrackerAdapter
All Implemented Interfaces:
Tracker

public abstract class TrackerAdapter
extends java.lang.Object
implements Tracker

provides a default implementation of the Tracker interface methods except for advanceTime

Author:
Jam Jenkins

Constructor Summary
TrackerAdapter()
           
 
Method Summary
abstract  void advanceTime(double time)
          advances time
 java.awt.geom.Point2D.Double getLocation()
          returns (0, 0)
 double getRotationAddition()
          returns 0
 double getScaleFactor()
          returns 1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackerAdapter

public TrackerAdapter()
Method Detail

getLocation

public java.awt.geom.Point2D.Double getLocation()
returns (0, 0)

Specified by:
getLocation in interface Tracker
Returns:
the absolute location of the Sprite
See Also:
Tracker.getLocation()

getScaleFactor

public double getScaleFactor()
returns 1

Specified by:
getScaleFactor in interface Tracker
Returns:
the multiplicative scaling factor
See Also:
Tracker.getScaleFactor()

getRotationAddition

public double getRotationAddition()
returns 0

Specified by:
getRotationAddition in interface Tracker
Returns:
the amount to rotate in radians
See Also:
Tracker.getRotationAddition()

advanceTime

public abstract void advanceTime(double time)
advances time

Specified by:
advanceTime in interface Tracker
Parameters:
time - the amount to advance