mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-07 18:49:34 +01:00
added a upadte robot spawn that updates the robot spawn location
This commit is contained in:
parent
e949af43bc
commit
76a1b344e1
@ -62,6 +62,11 @@ public class Phase {
|
||||
|
||||
fireAllLasers();
|
||||
checkAllFlags();
|
||||
updateRobotRespawn();
|
||||
}
|
||||
|
||||
public void updateRobotRespawn(){
|
||||
gameBoard.updateRobotRespawn();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -109,7 +114,7 @@ public class Phase {
|
||||
if (gameBoard.hasTouchedFlagThisTurn(robotID)) {
|
||||
continue;
|
||||
}
|
||||
gameBoard.updateRobotFlag(robotID, flag.getElement().getType());
|
||||
gameBoard.updateRobotFlag(robotID, flag);
|
||||
checkIfPlayerWon(robotID, flags.size());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user