diff options
Diffstat (limited to 'sigscript/CoinListObjectWrapper.cpp')
| -rw-r--r-- | sigscript/CoinListObjectWrapper.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sigscript/CoinListObjectWrapper.cpp b/sigscript/CoinListObjectWrapper.cpp index 9ebff168..a445fe09 100644 --- a/sigscript/CoinListObjectWrapper.cpp +++ b/sigscript/CoinListObjectWrapper.cpp @@ -18,59 +18,59 @@ // Header include #include "CoinListObjectWrapper.h" -// Pokescripting includes +// Sigscript includes #include "CoinListWrapper.h" -#include "PokemodWrapper.h" +#include "SigmodWrapper.h" -Pokescripting::CoinListObjectWrapper* Pokescripting::CoinListObjectWrapper::create(const Pokemod::CoinListObject* object, CoinListWrapper* parent) +Sigscript::CoinListObjectWrapper* Sigscript::CoinListObjectWrapper::create(const Sigmod::CoinListObject* object, CoinListWrapper* parent) { if (!m_instances.contains(Signiture(parent, object->id()))) m_instances[Signiture(parent, object->id())] = new CoinListObjectWrapper(object, parent); return qobject_cast<CoinListObjectWrapper*>(m_instances[Signiture(parent, object->id())]); } -Pokescripting::CoinListObjectWrapper::CoinListObjectWrapper(const Pokemod::CoinListObject* object, CoinListWrapper* parent) : +Sigscript::CoinListObjectWrapper::CoinListObjectWrapper(const Sigmod::CoinListObject* object, CoinListWrapper* parent) : ObjectWrapper(object, parent), m_object(object) { } -Pokemod::CoinListObject::Type Pokescripting::CoinListObjectWrapper::type(const QString& name) const +Sigmod::CoinListObject::Type Sigscript::CoinListObjectWrapper::type(const QString& name) const { if (name == "Item") - return Pokemod::CoinListObject::Item; + return Sigmod::CoinListObject::Item; else if (name == "Species") - return Pokemod::CoinListObject::Species; - return QVariant(-1).value<Pokemod::CoinListObject::Type>(); + return Sigmod::CoinListObject::Species; + return QVariant(-1).value<Sigmod::CoinListObject::Type>(); } -Pokemod::CoinListObject::Type Pokescripting::CoinListObjectWrapper::type() const +Sigmod::CoinListObject::Type Sigscript::CoinListObjectWrapper::type() const { return m_object->type(); } -Pokescripting::ItemWrapper* Pokescripting::CoinListObjectWrapper::itemObject() +Sigscript::ItemWrapper* Sigscript::CoinListObjectWrapper::itemObject() { - if (m_object->type() == Pokemod::CoinListObject::Item) - return pokemod()->item(m_object->object()); + if (m_object->type() == Sigmod::CoinListObject::Item) + return sigmod()->item(m_object->object()); return NULL; } -Pokescripting::SpeciesWrapper* Pokescripting::CoinListObjectWrapper::speciesObject() +Sigscript::SpeciesWrapper* Sigscript::CoinListObjectWrapper::speciesObject() { - if (m_object->type() == Pokemod::CoinListObject::Species) - return pokemod()->species(m_object->object()); + if (m_object->type() == Sigmod::CoinListObject::Species) + return sigmod()->species(m_object->object()); return NULL; } -int Pokescripting::CoinListObjectWrapper::amount() const +int Sigscript::CoinListObjectWrapper::amount() const { if (value("amount").canConvert<int>()) return value("amount").toInt(); return m_object->amount(); } -int Pokescripting::CoinListObjectWrapper::cost() const +int Sigscript::CoinListObjectWrapper::cost() const { if (value("cost").canConvert<int>()) return value("cost").toInt(); |
