|
@ -22,7 +22,9 @@ class MapTest { |
|
|
String expectedMiddle = "dot"; |
|
|
String expectedMiddle = "dot"; |
|
|
String expectedBottomRight = "dot"; |
|
|
String expectedBottomRight = "dot"; |
|
|
// act |
|
|
// act |
|
|
Map testMap = new Map(mapTest); |
|
|
|
|
|
|
|
|
GameManager gameManager = new GameManager(); |
|
|
|
|
|
gameManager.map = new Map(mapTest, gameManager); |
|
|
|
|
|
Map testMap = gameManager.map; |
|
|
|
|
|
|
|
|
String topLeft = testMap.cells[0][2].type; |
|
|
String topLeft = testMap.cells[0][2].type; |
|
|
String middle = testMap.cells[1][1].type; |
|
|
String middle = testMap.cells[1][1].type; |
|
@ -41,7 +43,9 @@ class MapTest { |
|
|
"w..", |
|
|
"w..", |
|
|
"ee." |
|
|
"ee." |
|
|
}; |
|
|
}; |
|
|
Map testMap = new Map(mapTest); |
|
|
|
|
|
|
|
|
GameManager gameManager = new GameManager(); |
|
|
|
|
|
gameManager.map = new Map(mapTest, gameManager); |
|
|
|
|
|
Map testMap = gameManager.map; |
|
|
Cell expectedTopLeft = testMap.cells[0][2]; |
|
|
Cell expectedTopLeft = testMap.cells[0][2]; |
|
|
Cell expectedMiddle = testMap.cells[1][1]; |
|
|
Cell expectedMiddle = testMap.cells[1][1]; |
|
|
Cell expectedBottomRight = testMap.cells[2][0]; |
|
|
Cell expectedBottomRight = testMap.cells[2][0]; |
|
|