Package com.deco2800.game.utils.random
Class Interrupt
java.lang.Object
com.deco2800.game.utils.random.Interrupt
-
Constructor Summary
ConstructorsConstructorDescriptionInterrupt
(int lowerBound, int upperBound) set the interrupt with lower bound and upper bound. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Resume the game regardless if it is interrupted or not
-
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 interruptupperBound
- : 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
-