diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-11 23:17:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-11 23:17:58 +0300 |
commit | 4dbda55f670866db29a64ca7a79500efbe6f8d00 (patch) | |
tree | ddf806b499dcb4896568278b05defad1f27bcd06 /src/item.h | |
parent | fbb1186a319794dba7c23c466c07d6f45f940b8e (diff) | |
download | manaverse-4dbda55f670866db29a64ca7a79500efbe6f8d00.tar.gz manaverse-4dbda55f670866db29a64ca7a79500efbe6f8d00.tar.bz2 manaverse-4dbda55f670866db29a64ca7a79500efbe6f8d00.tar.xz manaverse-4dbda55f670866db29a64ca7a79500efbe6f8d00.zip |
Replace some getters to direct fileds using.
Diffstat (limited to 'src/item.h')
-rw-r--r-- | src/item.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/item.h b/src/item.h index be35e0b17..05ab7d011 100644 --- a/src/item.h +++ b/src/item.h @@ -170,18 +170,19 @@ class Item std::string &getDescription() { return mDescription; } - protected: int mId; /**< Item type id. */ + unsigned char mColor; + int mQuantity; /**< Number of items. */ + + protected: Image *mImage; /**< Item image. */ Image *mDrawImage; /**< Draw image. */ - int mQuantity; /**< Number of items. */ bool mEquipment; /**< Item is equipment. */ bool mEquipped; /**< Item is equipped. */ bool mInEquipment; /**< Item is in equipment */ int mRefine; /**< Item refine level. */ int mInvIndex; /**< Inventory index. */ std::string mDescription; - unsigned char mColor; std::map <int, int> mTags; }; |