Kommentarer.

This commit is contained in:
Steinar Aalstad Lillesund 2020-03-24 14:28:42 +01:00
parent c7e3eee5f8
commit d3e5f65603

View File

@ -391,6 +391,11 @@ public class RoboRallyGame implements IDrawableGame {
gameBoard.doLaserCleanup(); gameBoard.doLaserCleanup();
} }
/**
* Runs all the programs in the correct order for the phase that is given.
* @param phase The phaser Nr we are in.
* @throws InterruptedException If it gets interupted while trying to sleep
*/
private void runProgramCards(int phase) throws InterruptedException { private void runProgramCards(int phase) throws InterruptedException {
List<RobotID> robotsToDoAction = new ArrayList<>(); List<RobotID> robotsToDoAction = new ArrayList<>();