mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-07-25 01:05:26 +02:00
Rydder opp i og kommenterer respawning av roboter
This commit is contained in:
@@ -234,8 +234,8 @@ public class BoardTest {
|
||||
public void flagGetsUpdatedOnRobotWithCorrectLastVisitedFlag() {
|
||||
Robot testRobot = robotList.get(6);
|
||||
assertEquals(0, testRobot.getLastFlagVisited());
|
||||
BoardElementContainer<Tile> flag = new BoardElementContainer<>(new Tile(TileType.FLAG_1,Direction.NORTH)
|
||||
,new Position(1,1));
|
||||
BoardElementContainer<Tile> flag = new BoardElementContainer<>(new Tile(TileType.FLAG_1, Direction.NORTH)
|
||||
, new Position(1, 1));
|
||||
board.updateRobotFlag(RobotID.ROBOT_7, flag);
|
||||
assertEquals(1, testRobot.getLastFlagVisited());
|
||||
}
|
||||
@@ -244,8 +244,8 @@ public class BoardTest {
|
||||
public void flagDoesNotUpdatedOnRobotWithWrongLastVisitedFlag() {
|
||||
Robot testRobot = robotList.get(6);
|
||||
assertEquals(0, testRobot.getLastFlagVisited());
|
||||
BoardElementContainer<Tile> flag = new BoardElementContainer<>(new Tile(TileType.FLAG_2,Direction.NORTH)
|
||||
,new Position(1,1));
|
||||
BoardElementContainer<Tile> flag = new BoardElementContainer<>(new Tile(TileType.FLAG_2, Direction.NORTH)
|
||||
, new Position(1, 1));
|
||||
board.updateRobotFlag(RobotID.ROBOT_7, flag);
|
||||
assertEquals(0, testRobot.getLastFlagVisited());
|
||||
}
|
||||
|
Reference in New Issue
Block a user