]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Simulation.hpp
split creature when it's "ripe" lol
[blobs.git] / src / world / Simulation.hpp
index ea81de5ba226fcc812491aa18bbc44e8c704e361..ee497a8f97a47b1ded9176b85f973ea7f5a645a9 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef BLOBS_WORLD_SIMULATION_HPP_
 #define BLOBS_WORLD_SIMULATION_HPP_
 
+#include "Set.hpp"
+#include "../app/Assets.hpp"
+
 #include <set>
 
 
@@ -9,12 +12,14 @@ namespace world {
 
 class Body;
 class Planet;
+class Resource;
 class Sun;
+class TileType;
 
 class Simulation {
 
 public:
-       explicit Simulation(Body &root);
+       explicit Simulation(Body &root, app::Assets &);
        ~Simulation();
 
        Simulation(const Simulation &) = delete;
@@ -33,6 +38,11 @@ public:
        Body &Root() noexcept { return root; }
        const Body &Root() const noexcept { return root; }
 
+       app::Assets &Assets() noexcept { return assets; }
+       const app::Assets &Assets() const noexcept { return assets; }
+       const Set<Resource> &Resources() const noexcept { return assets.data.resources; }
+       const Set<TileType> &TileTypes() const noexcept { return assets.data.tile_types; }
+
        const std::set<Body *> &Bodies() const noexcept { return bodies; }
        const std::set<Planet *> &Planets() const noexcept { return planets; }
        const std::set<Sun *> &Suns() const noexcept { return suns; }
@@ -41,6 +51,7 @@ public:
 
 private:
        Body &root;
+       app::Assets &assets;
        std::set<Body *> bodies;
        std::set<Planet *> planets;
        std::set<Sun *> suns;