// --------- BUILD FUNCTIONS ------------------ void BuildMap(int pos) { BuildLocationStatus(); TurnLocations(); if (shopList.Count != 0) { shopList = Graphs.BestRoute(shopList, pos); } ChangeCheckText(); NextItemColor(); SetNumbers(); }
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(); }