Example #1
0
        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);
        }
Example #2
0
 public void addCoin(CoinsBalance newCoinsBalance)
 {
     newCoinsBalances.Add(newCoinsBalance);
 }