Пример #1
0
 // constructor
 public Store()
 {
     lemon = new Lemon();
     ice   = new Ice();
     sugar = new Sugar();
     cup   = new Cup();
 }
Пример #2
0
 //constructor
 public Inventory()
 {
     cups   = new Cup();
     lemons = new Lemon();
     sugar  = new Sugar();
     ice    = new Ice();
 }
Пример #3
0
 public void AddCupInv(Player player, double cupAmountPrompt)
 {
     for (int i = 0; i < cupAmountPrompt; i++)
     {
         Cup cups = new Cup();
         player.inventory.cups.Add(cups);
     }
 }
Пример #4
0
 public void AddCupsToInventory(int numberOfCups)
 {
     for (int i = 0; i < numberOfCups; i++)
     {
         Cup cup = new Cup();
         cups.Add(cup);
     }
 }
Пример #5
0
 public void AddCups(decimal amount)
 {
     for (int i = 0; i < amount; i++)
     {
         Cup cup = new Cup();
         cups.Add(cup);
     }
 }
        public static void CupsSold(Player player, Cup cups)
        {
            int cupSold = 0;

            cupSold++;
        }