improved replays - can now skip forward 10 moves or let the client play through the moves

This commit is contained in:
BetaSteward 2011-09-05 22:12:36 -04:00
parent 6d4c3aa8d9
commit f5c3494723
12 changed files with 142 additions and 20 deletions

View file

@ -68,5 +68,10 @@ public class ReplayManager {
public void previousPlay(UUID gameId, UUID userId) {
replaySessions.get(gameId.toString() + userId.toString()).previous();
}
public void skipForward(UUID gameId, UUID userId, int moves) {
replaySessions.get(gameId.toString() + userId.toString()).next(moves);
}
}