From 4dbda55f670866db29a64ca7a79500efbe6f8d00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Oct 2012 23:17:58 +0300 Subject: Replace some getters to direct fileds using. --- src/item.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/item.h') 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 mTags; }; -- cgit v1.2.3-60-g2f50