aboutsummaryrefslogtreecommitdiffstats
path: root/include/world/tectonicphase.h
blob: 62a6455f5e0307961940f1fde098ee45a5d867ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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; }
};