Exemplo n.º 1
0
 // --------- BUILD FUNCTIONS  ------------------
 void BuildMap(int pos)
 {
     BuildLocationStatus();
     TurnLocations();
     if (shopList.Count != 0)
     {
         shopList = Graphs.BestRoute(shopList, pos);
     }
     ChangeCheckText();
     NextItemColor();
     SetNumbers();
 }
Exemplo n.º 2
0
 public void RedoPress()
 {
     System.Random rand = new System.Random();
     for (int i = 0; i < NLOCATIONS; i++)
     {
         locationsStatus[i] = rand.Next(2) == 0;
     }
     BuildShopList();
     TurnLocations();
     if (shopList.Count != 0)
     {
         shopList = Graphs.BestRoute(shopList, 24);
     }
     ChangeCheckText();
     NextItemColor();
     SetNumbers();
 }