1
0
mirror of https://github.com/inf112-v20/Fiasko.git synced 2025-07-04 23:24:43 +02:00

Endrer fireAllLasers metoden i RoboRallyGame slik at board ikke trenger å sove

This commit is contained in:
2020-03-23 13:47:34 +01:00
parent 606dfd3ccd
commit 0b3d627924

@ -373,7 +373,9 @@ public class RoboRallyGame implements IDrawableGame {
/**
* Fires all lasers on the game board
*/
private void fireAllLasers() {
private void fireAllLasers() throws InterruptedException {
gameBoard.fireAllLasers();
sleep();
gameBoard.doLaserCleanup();
}
}