|
@ -76,7 +76,7 @@ public class Map { |
|
|
|
|
|
|
|
|
String cellType = mapTypes.get(String.valueOf(cellChar)); |
|
|
String cellType = mapTypes.get(String.valueOf(cellChar)); |
|
|
|
|
|
|
|
|
cells[x][y] = new Cell(cellPos, cellType); |
|
|
|
|
|
|
|
|
cells[x][y] = new Cell(cellPos, cellType, this); |
|
|
|
|
|
|
|
|
if(cellChar == playerSpawnChar) { |
|
|
if(cellChar == playerSpawnChar) { |
|
|
playerSpawn = cellPos.Clone(); |
|
|
playerSpawn = cellPos.Clone(); |
|
|