]> git.localhorst.tv Git - space.git/blobdiff - src/world/Universe.h
added resources
[space.git] / src / world / Universe.h
index 18db4dc782f8dd1d26360f23def88f9eafc4511c..5b3fccaf51dd896535ab35b232caec2b83615e45 100644 (file)
@@ -5,6 +5,7 @@
 #include "../graphics/Vector.h"
 
 #include <list>
+#include <vector>
 
 
 namespace space {
@@ -70,11 +71,15 @@ public:
        Ship *AddShip(const Ship &);
        const std::list<Ship> &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<Ship> ships;
+       std::vector<Resource> resources;
 
 };