vooga.replay.core
Class AbstractVoogaReplay
java.lang.Object
vooga.replay.core.AbstractVoogaReplay
- All Implemented Interfaces:
- java.util.EventListener, TimeListener
- Direct Known Subclasses:
- UserActionReplay
public abstract class AbstractVoogaReplay
- extends java.lang.Object
- implements TimeListener
AbstractVoogaReplay is responsible for replaying a game.
- Author:
- Carrie Ho, Tom Donnelly, Van Dang
Method Summary |
protected java.lang.String |
getGame()
|
protected java.lang.String |
getUser()
|
abstract void |
replay(long time)
This method starts replaying the game at the specified time. |
void |
timeUpdated(TimeUpdateEvent t)
Receives an TimeUpdateEvent for the implementing class to
process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractVoogaReplay
public AbstractVoogaReplay(java.lang.String user,
java.lang.String game)
replay
public abstract void replay(long time)
- This method starts replaying the game at the specified time.
- Parameters:
time
-
getUser
protected java.lang.String getUser()
getGame
protected java.lang.String getGame()
timeUpdated
public void timeUpdated(TimeUpdateEvent t)
- Description copied from interface:
TimeListener
- Receives an
TimeUpdateEvent
for the implementing class to
process.
- Specified by:
timeUpdated
in interface TimeListener
- Parameters:
t
- is the TimeUpdateEvent