]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Planet.hpp
figure out our creature's metabolism
[blobs.git] / src / world / Planet.hpp
index af3b512aea6b058bc97b4dadb7435b0bc65d4347..991985f968173e2eb98f0ddac4b4e3fcdaa9984f 100644 (file)
@@ -64,6 +64,10 @@ public:
 
        glm::dvec3 TileCenter(int surface, int x, int y) const noexcept;
 
+       void Atmosphere(int a) noexcept { atmosphere = a; }
+       int Atmosphere() const noexcept { return atmosphere; }
+       bool HasAtmosphere() const noexcept { return atmosphere >= 0; }
+
        void BuildVAO(const Set<TileType> &);
        void Draw(app::Assets &, graphics::Viewport &) override;
 
@@ -71,6 +75,8 @@ private:
        int sidelength;
        std::vector<Tile> tiles;
 
+       int atmosphere;
+
        struct Attributes {
                glm::vec3 position;
                glm::vec3 tex_coord;