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/NatureWrapper.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/NatureWrapper.cpp')
| -rw-r--r-- | sigscript/NatureWrapper.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sigscript/NatureWrapper.cpp b/sigscript/NatureWrapper.cpp index f7b7af56..8aeadeec 100644 --- a/sigscript/NatureWrapper.cpp +++ b/sigscript/NatureWrapper.cpp @@ -24,7 +24,11 @@ // Sigmod includes #include <sigmod/Nature.h> -Sigscript::NatureWrapper* Sigscript::NatureWrapper::create(const Sigmod::Nature* nature, GameWrapper* parent) +using namespace Sigcore; +using namespace Sigmod; +using namespace Sigscript; + +NatureWrapper* NatureWrapper::create(const Nature* nature, GameWrapper* parent) { Signature sig = Signature(parent, Subsignature(nature->className(), nature->id())); if (!m_instances.contains(sig)) @@ -32,23 +36,23 @@ Sigscript::NatureWrapper* Sigscript::NatureWrapper::create(const Sigmod::Nature* return qobject_cast<NatureWrapper*>(m_instances[sig]); } -Sigscript::NatureWrapper::NatureWrapper(const Sigmod::Nature* nature, GameWrapper* parent) : +NatureWrapper::NatureWrapper(const Nature* nature, GameWrapper* parent) : ObjectWrapper(nature, parent), m_nature(nature) { } -QString Sigscript::NatureWrapper::name() const +QString NatureWrapper::name() const { return m_nature->name(); } -Sigcore::Fraction Sigscript::NatureWrapper::stat(const Sigmod::Stat stat) const +Fraction NatureWrapper::stat(const Stat stat) const { return m_nature->stat(stat); } -int Sigscript::NatureWrapper::weight() const +int NatureWrapper::weight() const { return m_nature->weight(); } |
