vooga.replay.core
Class UserActionReplay

java.lang.Object
  extended by vooga.replay.core.AbstractVoogaReplay
      extended by vooga.replay.core.UserActionReplay
All Implemented Interfaces:
java.util.EventListener, TimeListener

public class UserActionReplay
extends AbstractVoogaReplay

This class represents the method of replay which resimulates all the user actions.

Author:
Carrie Ho, Tom Donnelly, Van Dang

Nested Class Summary
 class UserActionReplay.HumanFireer
           
 class UserActionReplay.NetworkFireer
           
 
Constructor Summary
UserActionReplay(java.lang.String user, java.lang.String uniqueGameName, GameEngine inputGameEngine)
           
 
Method Summary
 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 vooga.replay.core.AbstractVoogaReplay
getGame, getUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserActionReplay

public UserActionReplay(java.lang.String user,
                        java.lang.String uniqueGameName,
                        GameEngine inputGameEngine)
Method Detail

replay

public void replay(long time)
Description copied from class: AbstractVoogaReplay
This method starts replaying the game at the specified time.

Specified by:
replay in class AbstractVoogaReplay

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
Overrides:
timeUpdated in class AbstractVoogaReplay
Parameters:
t - is the TimeUpdateEvent