public TileManager() { for(int y = 0; y < SIZE_Y; y++) { for (int x = 0; x < SIZE_X; x++) { board[x, y] = new TileArea("grass"); } } }
public TileManager() { for (int y = 0; y < SIZE_Y; y++) { for (int x = 0; x < SIZE_X; x++) { board[x, y] = new TileArea("grass"); } } }
public TileManager(Bitmap world_map) { for (int y = 0; y < SIZE_Y; y++) { for (int x = 0; x < SIZE_X; x++) { Color c = world_map.GetPixel(x, y); String tile_name = color_to_tile_type(c); board[x, y] = new TileArea(tile_name); } } }