]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Simulation.hpp
more orbits and stuff
[blobs.git] / src / world / Simulation.hpp
index 2acf54981b29b9bc04177a44a9b5cd84256503ca..3025a745b5bebb3665174e3599faf99a4c8cccdf 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef BLOBS_WORLD_SIMULATION_HPP_
 #define BLOBS_WORLD_SIMULATION_HPP_
 
+#include <vector>
+
 
 namespace blobs {
 namespace world {
@@ -22,11 +24,17 @@ public:
 public:
        void Tick();
 
+       void AddBody(Body &);
+
        Body &Root() { return root; }
        const Body &Root() const { return root; }
 
+       double Time() const noexcept { return time; }
+
 private:
        Body &root;
+       std::vector<Body *> all_bodies;
+       double time;
 
 };