Class Interrupt

java.lang.Object
com.deco2800.game.utils.random.Interrupt

public class Interrupt extends Object
  • Constructor Details

    • Interrupt

      public Interrupt(int lowerBound, int upperBound)
      set the interrupt with lower bound and upper bound.
      Parameters:
      lowerBound - : integer for the fastest time to wait for interrupt
      upperBound - : integer for the slowest time to wait for interrupt
  • Method Details

    • resumeGame

      public void resumeGame()
      Resume the game regardless if it is interrupted or not