aboutsummaryrefslogtreecommitdiffstats
path: root/include/world/tectonicphase.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/world/tectonicphase.h')
-rw-r--r--include/world/tectonicphase.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/world/tectonicphase.h b/include/world/tectonicphase.h
new file mode 100644
index 0000000..62a6455
--- /dev/null
+++ b/include/world/tectonicphase.h
@@ -0,0 +1,22 @@
+#include "map.h"
+
+struct Plate
+{
+ Plate() { x = 0; y = 0; continental = false; }
+ float x, y;
+ bool continental;
+};
+
+class TectonicPhase : public GenerationPhase
+{
+private:
+ std::vector<Plate> m_plates;
+ static int m_plateCount;
+public:
+ TectonicPhase(std::shared_ptr<GenerationPhase> prev, std::shared_ptr<WorldMap> map);
+ ~TectonicPhase() {}
+
+ void rasterize(std::shared_ptr<WorldMap> map);
+
+ static void setPlateCount(int c) { m_plateCount = c; }
+};