summaryrefslogtreecommitdiffstats
path: root/sigscript/CoinListObjectWrapper.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
commit0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch)
treea2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigscript/CoinListObjectWrapper.cpp
parentb81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff)
downloadsigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.gz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.xz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.zip
[FIX] Renamed everything (in use) away from Poké- prefixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigscript/CoinListObjectWrapper.cpp')
-rw-r--r--sigscript/CoinListObjectWrapper.cpp34
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();