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/CoinListWrapper.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/CoinListWrapper.cpp')
| -rw-r--r-- | sigscript/CoinListWrapper.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sigscript/CoinListWrapper.cpp b/sigscript/CoinListWrapper.cpp index f2ee2cc2..4125da6f 100644 --- a/sigscript/CoinListWrapper.cpp +++ b/sigscript/CoinListWrapper.cpp @@ -25,7 +25,11 @@ // Sigmod includes #include <sigmod/CoinList.h> -Sigscript::CoinListWrapper* Sigscript::CoinListWrapper::create(const Sigmod::CoinList* coinList, GameWrapper* parent) +using namespace Sigcore; +using namespace Sigmod; +using namespace Sigscript; + +CoinListWrapper* CoinListWrapper::create(const CoinList* coinList, GameWrapper* parent) { Signature sig = Signature(parent, Subsignature(coinList->className(), coinList->id())); if (!m_instances.contains(sig)) @@ -33,28 +37,28 @@ Sigscript::CoinListWrapper* Sigscript::CoinListWrapper::create(const Sigmod::Coi return qobject_cast<CoinListWrapper*>(m_instances[sig]); } -Sigscript::CoinListWrapper::CoinListWrapper(const Sigmod::CoinList* coinList, GameWrapper* parent) : +CoinListWrapper::CoinListWrapper(const CoinList* coinList, GameWrapper* parent) : ObjectWrapper(coinList, parent), m_coinList(coinList) { } -QString Sigscript::CoinListWrapper::name() const +QString CoinListWrapper::name() const { return m_coinList->name(); } -Sigcore::Script Sigscript::CoinListWrapper::script() const +Script CoinListWrapper::script() const { return m_coinList->script(); } -Sigscript::CoinListItemWrapper* Sigscript::CoinListWrapper::item(const int index) +CoinListItemWrapper* CoinListWrapper::item(const int index) { return CoinListItemWrapper::create(m_coinList->item(index), this); } -int Sigscript::CoinListWrapper::itemCount() const +int CoinListWrapper::itemCount() const { return m_coinList->itemCount(); } |
