diff --git a/isometric-park-fna/FNAGame.cs b/isometric-park-fna/FNAGame.cs --- a/isometric-park-fna/FNAGame.cs +++ b/isometric-park-fna/FNAGame.cs @@ -931,7 +931,7 @@ } } - String header_left = String.Format("${0:}|{1:} \ue124", this.simulation.money, this.simulation.map.tree_count); + String header_left = String.Format("${0:}|{1:} \ue124|{2:} \ue12c", this.simulation.money, this.simulation.map.tree_count, this.simulation.visitor_count); String header_middle = String.Format("{0:MMMMM yyyy} ({1:})", this.simulation.DateTime, this.simulation.Season); // String header_right = String.Format("Press H for help."); String header_right = ""; diff --git a/isometric-park-fna/Simulation.cs b/isometric-park-fna/Simulation.cs --- a/isometric-park-fna/Simulation.cs +++ b/isometric-park-fna/Simulation.cs @@ -36,11 +36,14 @@ public decimal cashflow; - //misc + //misc trees public int trees; public int dead_trees; public int crowded_trees; public int preserve_cells; + + //misc + public int visitor_count; //Kind of a hack but allows for tracking figures over time without creating a whole new infrastructure } @@ -115,6 +118,8 @@ public int preserve_cells; + public int visitor_count; + public Budget latestBudget { get @@ -257,6 +262,7 @@ this.map = new CellMap(width, height); this.money = STARTING_FUNDS; + this.visitor_count = 0; this.millisecondsPerAdvance = millisecondsPerAdvance; this.paused = true; @@ -279,6 +285,7 @@ private void advanceSimulation() { var oldSeason = this.Season; + //Advance clock this.DateTime = this.DateTime.AddMonths(1); this.Subsidy = Math.Max(0, this.Subsidy + this.SubsidyDelta); var newSeason = this.Season; @@ -363,7 +370,8 @@ tree_planting = this.tree_planting * Simulation.TREE_PLANT_COST, tree_clearing = this.tree_clearing * Simulation.TREE_CLEAR_COST, misc = this.misc, - preserve_cells = this.preserve_cells + preserve_cells = this.preserve_cells, + visitor_count = this.visitor_count }; newBudget = this.applyBudget(newBudget); ;