diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2006-11-23 22:51:42 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2006-11-23 22:51:42 +0000 |
commit | eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d (patch) | |
tree | 41015edc17e3c308d04e11c062a31f6bde028ea0 /src/gui/shop.cpp | |
parent | 08de4c7bab768be5a583150bfabd5d6d54a29c7a (diff) | |
download | mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.gz mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.bz2 mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.xz mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.zip |
Refectored the Itemmanager class to an ItemDB namespace.
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r-- | src/gui/shop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp index 3f30732a..2d33e8a8 100644 --- a/src/gui/shop.cpp +++ b/src/gui/shop.cpp @@ -23,7 +23,7 @@ #include "shop.h" #include "../utils/tostring.h" -#include "../resources/itemmanager.h" +#include "../resources/itemdb.h" ShopItems::~ShopItems() { @@ -44,11 +44,11 @@ void ShopItems::addItem(short id, int price) { ITEM_SHOP item_shop; - item_shop.name = itemDb->getItemInfo(id).getName() + item_shop.name = ItemDB::get(id).getName() + " " + toString(price) + " GP"; item_shop.price = price; item_shop.id = id; - item_shop.image = itemDb->getItemInfo(id).getImage(); + item_shop.image = ItemDB::get(id).getImage(); mItemsShop.push_back(item_shop); } |