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