X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FWorld.h;h=f15d43b8ae818c0a9a6cacf51baa230b48866763;hb=79dbf3ed50c70107164d0473bd7479ee680d6e70;hp=4cb5a2711096f4b7be4e3361aa8d8a292616a0b3;hpb=587986123da991c9d640d43f26a8c7035cd7cec5;p=gworm.git diff --git a/src/world/World.h b/src/world/World.h index 4cb5a27..f15d43b 100644 --- a/src/world/World.h +++ b/src/world/World.h @@ -1,9 +1,11 @@ #ifndef GWORM_WORLD_H_ #define GWORM_WORLD_H_ +#include "Entity.h" #include "../graphics/Color.h" #include "../graphics/Vector.h" +#include #include @@ -27,6 +29,9 @@ public: Color ColorAt(Vector pos) const { return colors[Index(pos)]; } void SetColor(Vector pos, Color c) { colors[Index(pos)] = c; } + const std::list &Entities() const { return entities; } + Entity &AddEntity(const Entity &); + Vector ForceAt(Vector, float m) const; private: @@ -36,6 +41,8 @@ private: std::vector masses; std::vector colors; + std::list entities; + }; }