diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 16:33:13 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 16:33:13 -0500 |
| commit | fd874f8a1e413b769245aa61a866bd536a551c3c (patch) | |
| tree | af66c155cc313e9ca777ba8a332c1133a52b3d9c /sigscript/ItemWrapper.cpp | |
| parent | eb7d51f42aa1790be6b496a0e1882d6a9646e1c8 (diff) | |
| download | sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.gz sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.tar.xz sigen-fd874f8a1e413b769245aa61a866bd536a551c3c.zip | |
Fixed up sigscript namespacing in sources
Diffstat (limited to 'sigscript/ItemWrapper.cpp')
| -rw-r--r-- | sigscript/ItemWrapper.cpp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/sigscript/ItemWrapper.cpp b/sigscript/ItemWrapper.cpp index 54290cba..ce1b9aa6 100644 --- a/sigscript/ItemWrapper.cpp +++ b/sigscript/ItemWrapper.cpp @@ -24,7 +24,11 @@ // Sigmod includes #include <sigmod/Item.h> -Sigscript::ItemWrapper* Sigscript::ItemWrapper::create(const Sigmod::Item* item, GameWrapper* parent) +using namespace Sigcore; +using namespace Sigmod; +using namespace Sigscript; + +ItemWrapper* ItemWrapper::create(const Item* item, GameWrapper* parent) { Signature sig = Signature(parent, Subsignature(item->className(), item->id())); if (!m_instances.contains(sig)) @@ -32,50 +36,50 @@ Sigscript::ItemWrapper* Sigscript::ItemWrapper::create(const Sigmod::Item* item, return qobject_cast<ItemWrapper*>(m_instances[sig]); } -Sigscript::ItemWrapper::ItemWrapper(const Sigmod::Item* item, GameWrapper* parent) : +ItemWrapper::ItemWrapper(const Item* item, GameWrapper* parent) : ObjectWrapper(item, parent), m_item(item) { } -QString Sigscript::ItemWrapper::name() const +QString ItemWrapper::name() const { return m_item->name(); } -bool Sigscript::ItemWrapper::sellable() const +bool ItemWrapper::sellable() const { return m_item->sellable(); } -Sigscript::ItemTypeWrapper* Sigscript::ItemWrapper::type() +ItemTypeWrapper* ItemWrapper::type() { return game()->itemType(m_item->type()); } -int Sigscript::ItemWrapper::price() const +int ItemWrapper::price() const { ALLOW_OVERRIDE_SO(item, int, price); return m_item->price(); } -int Sigscript::ItemWrapper::sellPrice() const +int ItemWrapper::sellPrice() const { ALLOW_OVERRIDE_SO(item, int, sellPrice); return m_item->sellPrice(); } -int Sigscript::ItemWrapper::weight() const +int ItemWrapper::weight() const { return m_item->weight(); } -QString Sigscript::ItemWrapper::description() const +QString ItemWrapper::description() const { return m_item->description(); } -Sigcore::Script Sigscript::ItemWrapper::script() const +Script ItemWrapper::script() const { return m_item->script(); } |
