From fd874f8a1e413b769245aa61a866bd536a551c3c Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 24 Feb 2009 16:33:13 -0500 Subject: Fixed up sigscript namespacing in sources --- sigscript/ItemWrapper.cpp | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'sigscript/ItemWrapper.cpp') 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 -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(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(); } -- cgit