X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FTileType.hpp;h=47602691d190315110d37f26e2310f76ab220c22;hb=HEAD;hp=c4eadcfc899a93eeb979f5a91638c8faec8c8e60;hpb=7ae2bd120fd0e1800edc9cbeb61e72bd06ffcf10;p=blobs.git diff --git a/src/world/TileType.hpp b/src/world/TileType.hpp index c4eadcf..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,12 +19,19 @@ struct TileType { int id; int texture; + double shiny = 5.0; + double glossy = 0.5; + double metallic = 0.0; + struct Yield { int resource; double ubiquity; }; std::vector resources; + std::vector::const_iterator FindResource(int) const; + std::vector::const_iterator FindBestResource(const creature::Composition &) const; + }; }