Ejemplo n.º 1
0
 public void TakeFromAccount(VmAccount account)
 {
     for (int i = 0; i < account.coins.Length; i++)
     {
         quantity[i] += account.quantity[i];
     }
 }
Ejemplo n.º 2
0
 public void Rollback(VmAccount account)
 {
     for (int i = 0; i < coins.Length; i++)
     {
         quantity[i] += account.quantity[i];
     }
 }
Ejemplo n.º 3
0
 public VmData(VmDrinks drinks, VmAccount account, VmMoney money, UserWallet wallet, UserDrinks userDrinks)
 {
     this.drinks     = drinks;
     this.account    = account;
     balance         = account.Balance();
     this.money      = money;
     this.wallet     = wallet;
     this.userDrinks = userDrinks;
 }