diff options
| author | Japa Illo | 2012-03-04 17:04:27 +0530 |
|---|---|---|
| committer | Japa Illo | 2012-03-04 17:04:27 +0530 |
| commit | 50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd (patch) | |
| tree | 5192971d0c752fe4da7504625c001ad3d60c7b19 /Block.h | |
| parent | 624bef8817b277e340c2312d6d1b62cb50fcb589 (diff) | |
| download | stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.gz stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.bz2 stonesense-50bbecc544aa227fb7bfc4a5c90c6b27369d8bcd.tar.xz | |
Added support for reading and displaying creature and building inventories.
Todo: some way to use them.
Signed-off-by: Japa Illo <japa.mala.illo@gmail.com>
Diffstat (limited to 'Block.h')
| -rw-r--r-- | Block.h | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -15,8 +15,22 @@ struct Worn_Item {
DFHack::t_matglossPair matt;
int8_t rating;
+ Worn_Item();
};
+struct Unit_Inventory
+{
+ std::vector<Worn_Item> Weapons;
+ std::vector<Worn_Item> Armor;
+ std::vector<Worn_Item> Shoes;
+ std::vector<Worn_Item> Shield;
+ std::vector<Worn_Item> Helm;
+ std::vector<Worn_Item> Gloves;
+ std::vector<Worn_Item> Pants;
+};
+
+
+
class Block
{
public:
@@ -133,12 +147,7 @@ public: bool obscuringBuilding;
//These are actually applied to the creature standing here, but there's only one creature shown, so it's okay.
- Worn_Item Weapon;
- Worn_Item Armor;
- Worn_Item Shoes;
- Worn_Item Shield;
- Worn_Item Helm;
- Worn_Item Gloves;
+ Unit_Inventory * inv;
private:
|
