]> git.localhorst.tv Git - blank.git/blobdiff - src/world/World.hpp
more fun with AI/steering
[blank.git] / src / world / World.hpp
index c24ccf327f4a21a848a5f6db1dc4616be3aea192..ab563a7fa9e1e964bb49b10dc16762f2b623a99e 100644 (file)
@@ -85,11 +85,14 @@ public:
        /// returs an existing entity if ID is already taken
        Entity &ForceAddEntity(std::uint32_t id);
 
+       std::list<Player> &Players() noexcept { return players; }
        const std::list<Player> &Players() const noexcept { return players; }
        std::list<Entity> &Entities() noexcept { return entities; }
        const std::list<Entity> &Entities() const noexcept { return entities; }
 
+       // dt in ms
        void Update(int dt);
+       // dt in s
        void Update(Entity &, float dt);
 
        void Render(Viewport &);