X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FTileType.hpp;h=47602691d190315110d37f26e2310f76ab220c22;hb=HEAD;hp=b5561fffa7a014875975c1325b96f84a456883a2;hpb=8a3907bb0bed257bf5d6f40f39f15114e8345913;p=blobs.git diff --git a/src/world/TileType.hpp b/src/world/TileType.hpp index b5561ff..4760269 100644 --- a/src/world/TileType.hpp +++ b/src/world/TileType.hpp @@ -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 resources; std::vector::const_iterator FindResource(int) const; + std::vector::const_iterator FindBestResource(const creature::Composition &) const; };