]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Body.hpp
standardized logging
[blobs.git] / src / world / Body.hpp
index 3cbb788114c723dcf25108013b8627651290662e..165d8483f5cbc6d890b7280ec91d6ed85401e6b1 100644 (file)
@@ -35,6 +35,7 @@ public:
 
 public:
        bool HasSimulation() const noexcept { return sim; }
+       Simulation &GetSimulation() noexcept { return *sim; }
        const Simulation &GetSimulation() const noexcept { return *sim; }
        void SetSimulation(Simulation &) noexcept;
 
@@ -88,7 +89,6 @@ public:
        void Cache() noexcept;
        void CheckCollision() noexcept;
 
-       // body takes over ownership of given pointer
        void AddCreature(creature::Creature *);
        void RemoveCreature(creature::Creature *);
        std::vector<creature::Creature *> &Creatures() noexcept { return creatures; }