Skip to content

Commit

Permalink
Added additional GameTimerSchedule for skipping whole schedule up to …
Browse files Browse the repository at this point in the history
…the end (#31)
  • Loading branch information
TheKaVu committed May 24, 2023
1 parent d63485e commit 824eef3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/dev/kavu/gameapi/GameTimerSchedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public void redo(){
index = -1;
}

public void skip(){
index = schedule.size() - 1;
}

public static class AwaitState extends GameState{
public AwaitState(long duration) {
super("await", duration, false);
Expand Down

0 comments on commit 824eef3

Please sign in to comment.