X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fworld%2FUniverse.h;fp=src%2Fworld%2FUniverse.h;h=563bfd90000b545d56bf754778b5f39d1827ab4a;hp=29e4ecb92b726f6e97bf65e38d6ea4aafecdacd1;hb=3f4f8a92f64df08119a40da4d196b3e92ecdc637;hpb=96ab5904b059e00e78b26a6527790c8dc951e324 diff --git a/src/world/Universe.h b/src/world/Universe.h index 29e4ecb..563bfd9 100644 --- a/src/world/Universe.h +++ b/src/world/Universe.h @@ -1,6 +1,12 @@ #ifndef SPACE_UNIVERSE_H_ #define SPACE_UNIVERSE_H_ +#include "../entity/Entity.h" +#include "../math/Vector.h" + +#include + + namespace space { class Sector; @@ -8,20 +14,34 @@ class Sector; class Universe { public: - Universe(int w, int h, int sec_w, int sec_h, int numres); + Universe(Vector size, Vector secSize, Vector areaSize, int numres); ~Universe(); -private: - Universe(const Universe &); - Universe &operator =(const Universe &); + + Universe(const Universe &) = delete; + Universe &operator =(const Universe &) = delete; + +public: + const Vector size; + const Vector secSize; + const Vector areaSize; + +public: + Entity *AddEntity(const Entity &); + const std::list &Entities() const { return entities; } + +public: + void Update(float deltaT); private: - int w; - int h; + int numres; int total; + Sector *sec_begin; Sector *sec_end; + std::list entities; + }; }