public void ReduceArea(int area, int costOfOneCentimeter) { Square.ReduceArea(area); Cashbox.Sell(area * costOfOneCentimeter); }
public Emporium(string name, int budget, int area) : this(name, budget) { Square = new Square(area); }
public void ExpandArea(int area, int costOfOneCentimeter) { Cashbox.Buy(area * costOfOneCentimeter); Square.ExpandArea(area); }
public Emporium(string name, int budget) { Name = name; Cashbox = new Cashbox(budget); Square = new Square(0); }