]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/TileType.hpp
overhaul need system
[blobs.git] / src / world / TileType.hpp
index 58294df071e017d33367c5e29ead1ca21fffc23b..7f18ee30261ac4ed0156956afa0787e6f197519e 100644 (file)
@@ -2,9 +2,13 @@
 #define BLOBS_WORLD_TILETYPE_HPP_
 
 #include <string>
+#include <vector>
 
 
 namespace blobs {
+namespace creature {
+       class Composition;
+}
 namespace world {
 
 struct TileType {
@@ -15,6 +19,15 @@ struct TileType {
        int id;
        int texture;
 
+       struct Yield {
+               int resource;
+               double ubiquity;
+       };
+       std::vector<Yield> resources;
+
+       std::vector<Yield>::const_iterator FindResource(int) const;
+       std::vector<Yield>::const_iterator FindBestResource(const creature::Composition &) const;
+
 };
 
 }