X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fworld%2FUniverse.h;fp=src%2Fworld%2FUniverse.h;h=5b3fccaf51dd896535ab35b232caec2b83615e45;hp=18db4dc782f8dd1d26360f23def88f9eafc4511c;hb=7bf949b332c410c6909fe80d9fc0ba2200f4ef19;hpb=501ffe20da16eaab69e668871001f735697c4a42 diff --git a/src/world/Universe.h b/src/world/Universe.h index 18db4dc..5b3fcca 100644 --- a/src/world/Universe.h +++ b/src/world/Universe.h @@ -5,6 +5,7 @@ #include "../graphics/Vector.h" #include +#include namespace space { @@ -70,11 +71,15 @@ public: Ship *AddShip(const Ship &); const std::list &Ships() const { return ships; } + int AddResource(const Resource &); + const Resource &GetResource(int id) const { return resources[id]; } + public: void Update(float deltaT); private: std::list ships; + std::vector resources; };