diff options
Diffstat (limited to 'sigscript/BadgeWrapper.cpp')
| -rw-r--r-- | sigscript/BadgeWrapper.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sigscript/BadgeWrapper.cpp b/sigscript/BadgeWrapper.cpp index 5afccd65..a3263cab 100644 --- a/sigscript/BadgeWrapper.cpp +++ b/sigscript/BadgeWrapper.cpp @@ -24,7 +24,11 @@ // Sigmod includes #include <sigmod/Badge.h> -Sigscript::BadgeWrapper* Sigscript::BadgeWrapper::create(const Sigmod::Badge* badge, GameWrapper* parent) +using namespace Sigcore; +using namespace Sigmod; +using namespace Sigscript; + +BadgeWrapper* BadgeWrapper::create(const Badge* badge, GameWrapper* parent) { Signature sig = Signature(parent, Subsignature(badge->className(), badge->id())); if (!m_instances.contains(sig)) @@ -32,33 +36,33 @@ Sigscript::BadgeWrapper* Sigscript::BadgeWrapper::create(const Sigmod::Badge* ba return qobject_cast<BadgeWrapper*>(m_instances[sig]); } -Sigscript::BadgeWrapper::BadgeWrapper(const Sigmod::Badge* badge, GameWrapper* parent) : +BadgeWrapper::BadgeWrapper(const Badge* badge, GameWrapper* parent) : ObjectWrapper(badge, parent), m_badge(badge) { } -QString Sigscript::BadgeWrapper::name() const +QString BadgeWrapper::name() const { return m_badge->name(); } -Sigscript::SpriteWrapper* Sigscript::BadgeWrapper::face() +SpriteWrapper* BadgeWrapper::face() { return game()->sprite(m_badge->face()); } -Sigscript::SpriteWrapper* Sigscript::BadgeWrapper::badge() +SpriteWrapper* BadgeWrapper::badge() { return game()->sprite(m_badge->badge()); } -int Sigscript::BadgeWrapper::obey() const +int BadgeWrapper::obey() const { return m_badge->obey(); } -Sigcore::Fraction Sigscript::BadgeWrapper::stat(const Sigmod::Stat stat) const +Fraction BadgeWrapper::stat(const Stat stat) const { return m_badge->stat(stat); } |
