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