mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-01 07:39:35 +01:00
Legger til en uferdig metode for å kjøre en fase
This commit is contained in:
parent
d235647783
commit
4cb6ebffc7
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user