]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/TileType.hpp
varying material and schlick/fresnel
[blobs.git] / src / world / TileType.hpp
index b5561fffa7a014875975c1325b96f84a456883a2..47602691d190315110d37f26e2310f76ab220c22 100644 (file)
@@ -6,6 +6,9 @@
 
 
 namespace blobs {
+namespace creature {
+       class Composition;
+}
 namespace world {
 
 struct TileType {
@@ -16,6 +19,10 @@ struct TileType {
        int id;
        int texture;
 
+       double shiny = 5.0;
+       double glossy = 0.5;
+       double metallic = 0.0;
+
        struct Yield {
                int resource;
                double ubiquity;
@@ -23,6 +30,7 @@ struct TileType {
        std::vector<Yield> resources;
 
        std::vector<Yield>::const_iterator FindResource(int) const;
+       std::vector<Yield>::const_iterator FindBestResource(const creature::Composition &) const;
 
 };