X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FTileType.hpp;h=47602691d190315110d37f26e2310f76ab220c22;hb=HEAD;hp=58294df071e017d33367c5e29ead1ca21fffc23b;hpb=02d5571eef7630c38968af264a441aa43e802d0f;p=blobs.git diff --git a/src/world/TileType.hpp b/src/world/TileType.hpp index 58294df..4760269 100644 --- a/src/world/TileType.hpp +++ b/src/world/TileType.hpp @@ -2,9 +2,13 @@ #define BLOBS_WORLD_TILETYPE_HPP_ #include +#include namespace blobs { +namespace creature { + class Composition; +} namespace world { struct TileType { @@ -15,6 +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; + }; }