예제 #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++;
        }