Beispiel #1
0
 //initializates
 public static void InitGameMap(int sizeX, int sizeY)
 {
     IsMapInitiated = true;
     MapSizeX       = sizeX;
     MapSizeY       = sizeY;
     gameMap        = new map(sizeX, sizeY);
     for (int i = 0; i < sizeX; i++)
     {
         for (int j = 0; j < sizeY; j++)
         {
             gameMap.setCell(new cell(i, j, 1));
         }
     }
 }
Beispiel #2
0
 public static void InitMapCell(int x, int y, int price)
 {
     gameMap.setCell(new cell(x, y, price));
 }