コード例 #1
0
ファイル: Stand.cs プロジェクト: JosiGrc/LemonadeStand
        public double totalMoneyEarned;     //There is a stand class so the code is open to extension

        //Constructor
        public Stand()
        {
            cupsBoughtToday  = 0;
            myStore          = new Store();
            standInventory   = new Inventory();
            myLemonadeRecipe = new LemonadeRecipe();
        }
コード例 #2
0
 //CONSTRUCTOR
 public Player()
 {
     recipe         = new LemonadeRecipe();
     inventory      = new Inventory();
     pitcher        = 0;
     cupsToPitcher  = 8;
     numberOfBuyers = 0;
 }
コード例 #3
0
 //Constructor
 public Game()
 {
     myRecipe      = new LemonadeRecipe();
     lemonadeStand = new Stand();
     player1       = new Player();
     store         = new Store();
     today         = new Day();
 }
コード例 #4
0
        //  private Customer customer;
        // public int dailyAmountOfCustomers = 70;

        // constructor (SPAWNER)
        public Day()
        {
            Weather        weather        = new Weather();
            LemonadeRecipe lemonadeRecipe = new LemonadeRecipe();
        }