summaryrefslogtreecommitdiffstats
path: root/sigmod/CoinListObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/CoinListObject.cpp')
-rw-r--r--sigmod/CoinListObject.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/sigmod/CoinListObject.cpp b/sigmod/CoinListObject.cpp
index 8ff85afb..a82c3b2a 100644
--- a/sigmod/CoinListObject.cpp
+++ b/sigmod/CoinListObject.cpp
@@ -18,20 +18,20 @@
// Header include
#include "CoinListObject.h"
-// Pokemod includes
+// Sigmod includes
#include "CoinList.h"
#include "Macros.h"
-#include "Pokemod.h"
+#include "Sigmod.h"
-const QStringList Pokemod::CoinListObject::TypeStr = QStringList() << "Item" << "Team Member";
+const QStringList Sigmod::CoinListObject::TypeStr = QStringList() << "Item" << "Team Member";
-Pokemod::CoinListObject::CoinListObject(const CoinListObject& object) :
+Sigmod::CoinListObject::CoinListObject(const CoinListObject& object) :
Object(object.parent(), object.id())
{
*this = object;
}
-Pokemod::CoinListObject::CoinListObject(const CoinList* parent, const int id) :
+Sigmod::CoinListObject::CoinListObject(const CoinList* parent, const int id) :
Object(parent, id),
m_type(Item),
m_object(INT_MAX),
@@ -40,20 +40,20 @@ Pokemod::CoinListObject::CoinListObject(const CoinList* parent, const int id) :
{
}
-Pokemod::CoinListObject::CoinListObject(const CoinListObject& object, const CoinList* parent, const int id) :
+Sigmod::CoinListObject::CoinListObject(const CoinListObject& object, const CoinList* parent, const int id) :
Object(parent, id)
{
*this = object;
}
-Pokemod::CoinListObject::CoinListObject(const QDomElement& xml, const CoinList* parent, const int id) :
+Sigmod::CoinListObject::CoinListObject(const QDomElement& xml, const CoinList* parent, const int id) :
Object(parent, id)
{
LOAD_ID();
load(xml);
}
-void Pokemod::CoinListObject::validate()
+void Sigmod::CoinListObject::validate()
{
TEST_BEGIN();
TEST(setObject, object);
@@ -61,7 +61,7 @@ void Pokemod::CoinListObject::validate()
TEST_END();
}
-void Pokemod::CoinListObject::load(const QDomElement& xml)
+void Sigmod::CoinListObject::load(const QDomElement& xml)
{
LOAD_BEGIN();
LOAD(type);
@@ -70,7 +70,7 @@ void Pokemod::CoinListObject::load(const QDomElement& xml)
LOAD(cost);
}
-QDomElement Pokemod::CoinListObject::save() const
+QDomElement Sigmod::CoinListObject::save() const
{
SAVE_CREATE();
SAVE(type);
@@ -80,20 +80,20 @@ QDomElement Pokemod::CoinListObject::save() const
return xml;
}
-void Pokemod::CoinListObject::setType(const Type type)
+void Sigmod::CoinListObject::setType(const Type type)
{
CHECK(type);
}
-void Pokemod::CoinListObject::setObject(const int object)
+void Sigmod::CoinListObject::setObject(const int object)
{
- if (((Item == m_type) && (qobject_cast<const Pokemod*>(pokemod())->itemIndex(object) == INT_MAX)) || ((Species == m_type) && (qobject_cast<const Pokemod*>(pokemod())->speciesIndex(object) == INT_MAX)))
+ if (((Item == m_type) && (qobject_cast<const Sigmod*>(sigmod())->itemIndex(object) == INT_MAX)) || ((Species == m_type) && (qobject_cast<const Sigmod*>(sigmod())->speciesIndex(object) == INT_MAX)))
emit(error(bounds("object")));
else
CHECK(object);
}
-void Pokemod::CoinListObject::setAmount(const int amount)
+void Sigmod::CoinListObject::setAmount(const int amount)
{
if (!amount || ((Species == m_type) && (1 < amount)))
emit(error(bounds("amount")));
@@ -101,32 +101,32 @@ void Pokemod::CoinListObject::setAmount(const int amount)
CHECK(amount);
}
-void Pokemod::CoinListObject::setCost(const int cost)
+void Sigmod::CoinListObject::setCost(const int cost)
{
CHECK(cost);
}
-Pokemod::CoinListObject::Type Pokemod::CoinListObject::type() const
+Sigmod::CoinListObject::Type Sigmod::CoinListObject::type() const
{
return m_type;
}
-int Pokemod::CoinListObject::object() const
+int Sigmod::CoinListObject::object() const
{
return m_object;
}
-int Pokemod::CoinListObject::amount() const
+int Sigmod::CoinListObject::amount() const
{
return m_amount;
}
-int Pokemod::CoinListObject::cost() const
+int Sigmod::CoinListObject::cost() const
{
return m_cost;
}
-Pokemod::CoinListObject& Pokemod::CoinListObject::operator=(const CoinListObject& rhs)
+Sigmod::CoinListObject& Sigmod::CoinListObject::operator=(const CoinListObject& rhs)
{
if (this == &rhs)
return *this;