]> git.localhorst.tv Git - space.git/blobdiff - src/world/Universe.h
fix Resource include
[space.git] / src / world / Universe.h
index 18db4dc782f8dd1d26360f23def88f9eafc4511c..807c1cd18fe16444f214abe749afcf601ac587ea 100644 (file)
@@ -1,10 +1,12 @@
 #ifndef SPACE_UNIVERSE_H_
 #define SPACE_UNIVERSE_H_
 
+#include "Resource.h"
 #include "../entity/Ship.h"
 #include "../graphics/Vector.h"
 
 #include <list>
+#include <vector>
 
 
 namespace space {
@@ -70,11 +72,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;
 
 };