]> git.localhorst.tv Git - blobs.git/blob - src/world/TileType.hpp
overhaul need system
[blobs.git] / src / world / TileType.hpp
1 #ifndef BLOBS_WORLD_TILETYPE_HPP_
2 #define BLOBS_WORLD_TILETYPE_HPP_
3
4 #include <string>
5 #include <vector>
6
7
8 namespace blobs {
9 namespace creature {
10         class Composition;
11 }
12 namespace world {
13
14 struct TileType {
15
16         std::string name;
17         std::string label;
18
19         int id;
20         int texture;
21
22         struct Yield {
23                 int resource;
24                 double ubiquity;
25         };
26         std::vector<Yield> resources;
27
28         std::vector<Yield>::const_iterator FindResource(int) const;
29         std::vector<Yield>::const_iterator FindBestResource(const creature::Composition &) const;
30
31 };
32
33 }
34 }
35
36 #endif