mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-01-31 23:29:36 +01:00
Merge branch 'master' of https://github.com/inf112-v20/Fiasko
This commit is contained in:
commit
6bb6e4965c
@ -136,14 +136,22 @@ public class Board {
|
||||
}
|
||||
|
||||
/**
|
||||
* sets the powerdown status of the robot
|
||||
* @param robotID the robotid of the robot
|
||||
* @param powerdown the status of the powerdown
|
||||
* Sets the power down status of the robot
|
||||
* @param robotID The robot id of the robot
|
||||
* @param powerdown The status of the powerdown
|
||||
*/
|
||||
public void setPowerDown(RobotID robotID, Boolean powerdown) {
|
||||
robots.get(robotID).setPowerDown(powerdown);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the power down status of the robot
|
||||
* @param robotID The robot id of the robot
|
||||
*/
|
||||
public boolean getPowerDown(RobotID robotID) {
|
||||
return robots.get(robotID).isInPowerDown();
|
||||
}
|
||||
|
||||
/**
|
||||
* removes one damage for a given robot given that it has taken som damage before
|
||||
* @param robotID the ID of the robot
|
||||
|
@ -414,9 +414,9 @@ public class RoboRallyGame implements IDrawableGame {
|
||||
}
|
||||
|
||||
/**
|
||||
* repair all robots standing on a reparer tile
|
||||
* repair all robots standing on a repair tile
|
||||
*/
|
||||
private void repairAllRobotsOnReparerTiles(){
|
||||
private void repairAllRobotsOnRepairTiles(){
|
||||
List<BoardElementContainer<Tile>> listOfRepareTiles = gameBoard.getPositionsOfTileOnBoard(TileType.FLAG_1,
|
||||
TileType.FLAG_2, TileType.FLAG_3, TileType.FLAG_4, TileType.WRENCH, TileType.WRENCH_AND_HAMMER);
|
||||
for (BoardElementContainer<Tile> repareTile:listOfRepareTiles) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user