public LevelMatrix(int width, int height) { this.width = width; this.height = height; terrainMatrix = new Tile[width, height]; effectMatrix = new TokenTile[width, height]; entityMatrix = new TokenTile[width, height]; initializeMatrix(); }
private void initializeMatrix() { for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { terrainMatrix[x, y] = new Tile(x, y); effectMatrix[x, y] = new TokenTile(x, y); entityMatrix[x, y] = new TokenTile(x, y) { ForegroundColor = new Color4(255, 255, 255, 125) }; } } }