Description:
Add tree count.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -199,6 +199,13 | |||||
|
199 | } |
|
199 | } |
|
200 | } |
|
200 | } |
|
201 |
|
201 | ||
|
|
202 | public int dead_trees | ||
|
|
203 | { | ||
|
|
204 | get { | ||
|
|
205 | return this.map.iterate_cells().Where(c => (c.status == CellStatus.DeadTree)).Count(); | ||
|
|
206 | } | ||
|
|
207 | } | ||
|
|
208 | |||
|
202 | public float healthy_percent |
|
209 | public float healthy_percent |
|
203 | { |
|
210 | { |
|
204 | get { |
|
211 | get { |
@@ -95,7 +95,8 | |||||
|
95 |
|
95 | ||
|
96 | ImGui.Separator(); |
|
96 | ImGui.Separator(); |
|
97 |
|
97 | ||
|
98 |
ImGui.Text(string.Format("Crowded Trees: {0}", sim.crowded_trees |
|
98 | ImGui.Text(string.Format("Crowded Trees: {0}", sim.crowded_trees)); |
|
|
99 | ImGui.Text(string.Format("Dead Trees: {0}", sim.dead_trees)); | ||
|
99 | ImGui.Text(string.Format("Percent Healthy Trees: {0:F2}", sim.healthy_percent)); |
|
100 | ImGui.Text(string.Format("Percent Healthy Trees: {0:F2}", sim.healthy_percent)); |
|
100 | ImGui.Text(string.Format("Average Age of Trees: {0:F2}", sim.average_tree_age)); |
|
101 | ImGui.Text(string.Format("Average Age of Trees: {0:F2}", sim.average_tree_age)); |
|
101 | ImGui.Text(string.Format("Max Age of Trees: {0:F2}", sim.max_tree_age)); |
|
102 | ImGui.Text(string.Format("Max Age of Trees: {0:F2}", sim.max_tree_age)); |
You need to be logged in to leave comments.
Login now