Esempio n. 1
0
 public TileManager()
 {
     for(int y = 0; y < SIZE_Y; y++)
     {
         for (int x = 0; x < SIZE_X; x++)
         {
             board[x, y] = new TileArea("grass");
         }
     }
 }
Esempio n. 2
0
 public TileManager()
 {
     for (int y = 0; y < SIZE_Y; y++)
     {
         for (int x = 0; x < SIZE_X; x++)
         {
             board[x, y] = new TileArea("grass");
         }
     }
 }
Esempio n. 3
0
        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);
                }
            }
        }
Esempio n. 4
0
        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);
                }
            }
        }