//Constructor (BUILDS OBJECT) public Player() { cupsOfLemonadeSold = 0; priceofLemonade = 0; numberResponse = 0; response = null; lemonadeMachine = new LemonadeMachine(); wallet = new Wallet(); inventory = new Inventory(); store = new Store(); maxPrice = store.costOfSupplies * 2; }
//Constructor (BUILDS OBJECT) public Player() { CostOfCup = 1; CostOfIce = 1; CostOfSugar = 1; CostOfLemon = 1; costOfSupplies = CostOfCup + CostOfIce + CostOfSugar + CostOfLemon; maxPrice = costOfSupplies * 2; cupsOfLemonadeSold = 0; priceofLemonade = 0; numberResponse = 0; response = null; lemonadeMachine = new LemonadeMachine(); wallet = new Wallet(); }