diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
| commit | 0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch) | |
| tree | a2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigmod/CoinList.cpp | |
| parent | b81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff) | |
| download | sigen-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 'sigmod/CoinList.cpp')
| -rw-r--r-- | sigmod/CoinList.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/sigmod/CoinList.cpp b/sigmod/CoinList.cpp index c19d325a..47c360cf 100644 --- a/sigmod/CoinList.cpp +++ b/sigmod/CoinList.cpp @@ -18,46 +18,46 @@ // Header include #include "CoinList.h" -// Pokemod includes +// Sigmod includes #include "CoinListObject.h" #include "Macros.h" -#include "Pokemod.h" +#include "Sigmod.h" // Qt includes #include <QtCore/QSet> -Pokemod::CoinList::CoinList(const CoinList& coinList) : +Sigmod::CoinList::CoinList(const CoinList& coinList) : Object(coinList.parent(), coinList.id()) { *this = coinList; } -Pokemod::CoinList::CoinList(const Pokemod* parent, const int id) : +Sigmod::CoinList::CoinList(const Sigmod* parent, const int id) : Object(parent, id), m_name(""), m_script("", "") { } -Pokemod::CoinList::CoinList(const CoinList& coinList, const Pokemod* parent, const int id) : +Sigmod::CoinList::CoinList(const CoinList& coinList, const Sigmod* parent, const int id) : Object(parent, id) { *this = coinList; } -Pokemod::CoinList::CoinList(const QDomElement& xml, const Pokemod* parent, const int id) : +Sigmod::CoinList::CoinList(const QDomElement& xml, const Sigmod* parent, const int id) : Object(parent, id) { LOAD_ID(); load(xml); } -Pokemod::CoinList::~CoinList() +Sigmod::CoinList::~CoinList() { clear(); } -void Pokemod::CoinList::validate() +void Sigmod::CoinList::validate() { TEST_BEGIN(); if (m_name.isEmpty()) @@ -100,7 +100,7 @@ void Pokemod::CoinList::validate() TEST_END(); } -void Pokemod::CoinList::load(const QDomElement& xml) +void Sigmod::CoinList::load(const QDomElement& xml) { LOAD_BEGIN(); LOAD(name); @@ -108,7 +108,7 @@ void Pokemod::CoinList::load(const QDomElement& xml) LOAD_SUB(newObject, CoinListObject); } -QDomElement Pokemod::CoinList::save() const +QDomElement Sigmod::CoinList::save() const { SAVE_CREATE(); SAVE(name); @@ -117,49 +117,49 @@ QDomElement Pokemod::CoinList::save() const return xml; } -void Pokemod::CoinList::setName(const QString& name) +void Sigmod::CoinList::setName(const QString& name) { CHECK(name); } -void Pokemod::CoinList::setScript(const Script& script) +void Sigmod::CoinList::setScript(const Script& script) { CHECK(script) } -QString Pokemod::CoinList::name() const +QString Sigmod::CoinList::name() const { return m_name; } -Pokemod::Script Pokemod::CoinList::script() const +Sigmod::Script Sigmod::CoinList::script() const { return m_script; } -const Pokemod::CoinListObject* Pokemod::CoinList::object(const int index) const +const Sigmod::CoinListObject* Sigmod::CoinList::object(const int index) const { Q_ASSERT(index < objectCount()); return m_objects.at(index); } -Pokemod::CoinListObject* Pokemod::CoinList::object(const int index) +Sigmod::CoinListObject* Sigmod::CoinList::object(const int index) { Q_ASSERT(index < objectCount()); return m_objects[index]; } -const Pokemod::CoinListObject* Pokemod::CoinList::objectById(const int id) const +const Sigmod::CoinListObject* Sigmod::CoinList::objectById(const int id) const { return object(objectIndex(id)); } -Pokemod::CoinListObject* Pokemod::CoinList::objectById(const int id) +Sigmod::CoinListObject* Sigmod::CoinList::objectById(const int id) { return object(objectIndex(id)); } -int Pokemod::CoinList::objectIndex(const int id) const +int Sigmod::CoinList::objectIndex(const int id) const { for (int i = 0; i < objectCount(); ++i) { @@ -169,45 +169,45 @@ int Pokemod::CoinList::objectIndex(const int id) const return INT_MAX; } -int Pokemod::CoinList::objectCount() const +int Sigmod::CoinList::objectCount() const { return m_objects.size(); } -Pokemod::CoinListObject* Pokemod::CoinList::newObject() +Sigmod::CoinListObject* Sigmod::CoinList::newObject() { return newObject(new CoinListObject(this, objectId())); } -Pokemod::CoinListObject* Pokemod::CoinList::newObject(const QDomElement& xml) +Sigmod::CoinListObject* Sigmod::CoinList::newObject(const QDomElement& xml) { return newObject(new CoinListObject(xml, this, objectId())); } -Pokemod::CoinListObject* Pokemod::CoinList::newObject(const CoinListObject& object) +Sigmod::CoinListObject* Sigmod::CoinList::newObject(const CoinListObject& object) { return newObject(new CoinListObject(object, this, objectId())); } -Pokemod::CoinListObject* Pokemod::CoinList::newObject(CoinListObject* object) +Sigmod::CoinListObject* Sigmod::CoinList::newObject(CoinListObject* object) { m_objects.append(object); return object; } -void Pokemod::CoinList::deleteObject(const int index) +void Sigmod::CoinList::deleteObject(const int index) { Q_ASSERT(index < objectCount()); delete m_objects[index]; m_objects.removeAt(index); } -void Pokemod::CoinList::deleteObjectById(const int id) +void Sigmod::CoinList::deleteObjectById(const int id) { deleteObject(objectIndex(id)); } -int Pokemod::CoinList::objectId() const +int Sigmod::CoinList::objectId() const { int i = 0; while ((i < objectCount()) && (objectIndex(i) != INT_MAX)) @@ -215,7 +215,7 @@ int Pokemod::CoinList::objectId() const return i; } -Pokemod::CoinList& Pokemod::CoinList::operator=(const CoinList& rhs) +Sigmod::CoinList& Sigmod::CoinList::operator=(const CoinList& rhs) { if (this == &rhs) return *this; @@ -226,7 +226,7 @@ Pokemod::CoinList& Pokemod::CoinList::operator=(const CoinList& rhs) return *this; } -void Pokemod::CoinList::clear() +void Sigmod::CoinList::clear() { while (objectCount()) deleteObject(0); |
