public class ReplayInstance
extends java.lang.Object
Constructor and Description |
---|
ReplayInstance(PuzzleInstance g,
java.lang.String moves) |
Modifier and Type | Method and Description |
---|---|
boolean |
atEnd() |
boolean |
atStart() |
java.util.ArrayList<Event<?>> |
getReplayEvents() |
int |
getReplayPos() |
long |
getTimeOfFirstEvent() |
long |
getTimeOfLastEvent() |
long |
getTimeOfNextEvent() |
long |
getTimeOfPreviousEvent() |
long |
getTimeUntilNextEvent() |
void |
next()
This method is used to cause the replay to show one step forward in the replay: I.E.
|
int |
numberMoves() |
void |
previous()
This method is used to cause the replay to show one step backward in the replay: I.E.
|
void |
toEnd()
Called when the user hits the to end button, moves the replay to the end
|
void |
toStart()
Called when the user hits the to start button, moves the replay to the beginning
|
public ReplayInstance(PuzzleInstance g, java.lang.String moves)
public long getTimeOfFirstEvent()
public long getTimeOfLastEvent()
public long getTimeOfPreviousEvent()
public long getTimeOfNextEvent()
public long getTimeUntilNextEvent()
public int numberMoves()
public int getReplayPos()
public boolean atStart()
public boolean atEnd()
public void toStart()
public void toEnd()
public void next()
public void previous()
public java.util.ArrayList<Event<?>> getReplayEvents()