Legger til en uferdig metode for å kjøre en fase

This commit is contained in:
Kristian Knarvik 2020-03-24 12:24:25 +01:00
parent d235647783
commit 4cb6ebffc7

View File

@ -169,6 +169,21 @@ public class RoboRallyGame implements IDrawableGame {
makeMove(RobotID.ROBOT_7, Action.MOVE_1); makeMove(RobotID.ROBOT_7, Action.MOVE_1);
} }
/**
* Runs one phase as defined in the Robo Rally rulebook
* @param phaseNumber The number of the phase to run
* @throws InterruptedException If interrupted wile trying to sleep
*/
private void runPhase(int phaseNumber) throws InterruptedException {
//TODO: Run programming cards
moveAllConveyorBelts();
rotateCogwheels();
fireAllLasers();
checkAllFlags();
}
/** /**
* Makes the given robot move according to to the action input. * Makes the given robot move according to to the action input.
* @param robotID The ID of the robot to move. * @param robotID The ID of the robot to move.