Exemplo n.º 1
0
        public void decreseInventory(inventory inventory, string item, double ammountToDecrease)
        {
            switch (item)
            {
            case "Lemons":
                inventory.Lemons -= ammountToDecrease;
                break;

            case "Sugar":
                inventory.Sugar -= ammountToDecrease;
                break;

            case "Ice Cubes":
                inventory.IceCubes -= ammountToDecrease;
                break;

            case "Cups":
                inventory.Cups -= ammountToDecrease;
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
 public Player()
 {
     inventory = new inventory();
     recipe    = new Recipe();
 }