diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-12-15 15:57:57 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-12-15 15:57:57 (GMT) |
| commit | 201d3140967c291e8c331a3eda8215cdf7347c47 (patch) | |
| tree | 0a867ba0dbd55c072a677a28aae22f11f2ea57ce /src/debug/ElementPopulation.h | |
| parent | 558888ac25cf503bcbf996d839a0d5f028b15f7c (diff) | |
| download | powder-201d3140967c291e8c331a3eda8215cdf7347c47.zip powder-201d3140967c291e8c331a3eda8215cdf7347c47.tar.gz | |
Element population histogram debug info display - has to be enabled by adding debugInfo.push_back(new ElementPopulationDebug(gameModel->GetSimulation())); somewhere in GameController
Diffstat (limited to 'src/debug/ElementPopulation.h')
| -rw-r--r-- | src/debug/ElementPopulation.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/debug/ElementPopulation.h b/src/debug/ElementPopulation.h new file mode 100644 index 0000000..845b91e --- /dev/null +++ b/src/debug/ElementPopulation.h @@ -0,0 +1,14 @@ +#pragma once + +#include "DebugInfo.h" + +class Simulation; +class ElementPopulationDebug : public DebugInfo +{ + Simulation * sim; + float maxAverage; +public: + ElementPopulationDebug(Simulation * sim); + virtual void Draw(ui::Point position); + virtual ~ElementPopulationDebug(); +};
\ No newline at end of file |
