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