public City(int xCoord, int yCoord, string countryName) { this.x = xCoord; this.y = yCoord; this.countryName = countryName; CoinsBalance thisCountryCoinsBalance = new CoinsBalance(countryName, InitialCityCoinBalance); coinsBalances = new List <CoinsBalance>(); newCoinsBalances = new List <CoinsBalance>(); neighbours = new List <City>(); coinsBalances.Add(thisCountryCoinsBalance); }
public void addCoin(CoinsBalance newCoinsBalance) { newCoinsBalances.Add(newCoinsBalance); }