summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinListObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/CoinListObject.cpp')
-rw-r--r--pokemod/CoinListObject.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp
index 2e0d4066..9720884d 100644
--- a/pokemod/CoinListObject.cpp
+++ b/pokemod/CoinListObject.cpp
@@ -22,15 +22,15 @@
#include "CoinList.h"
#include "Pokemod.h"
-const QStringList CoinListObject::TypeStr = QStringList() << "Item" << QString::fromUtf8("Pokémon");
+const QStringList Pokemod::CoinListObject::TypeStr = QStringList() << "Item" << QString::fromUtf8("Pokémon");
-CoinListObject::CoinListObject(const CoinListObject& object) :
+Pokemod::CoinListObject::CoinListObject(const CoinListObject& object) :
Object("CoinListObject", object.parent(), object.id())
{
*this = object;
}
-CoinListObject::CoinListObject(const CoinList* parent, const int id) :
+Pokemod::CoinListObject::CoinListObject(const CoinList* parent, const int id) :
Object("CoinListObject", parent, id),
m_type(Item),
m_object(INT_MAX),
@@ -39,26 +39,26 @@ CoinListObject::CoinListObject(const CoinList* parent, const int id) :
{
}
-CoinListObject::CoinListObject(const CoinListObject& object, const CoinList* parent, const int id) :
+Pokemod::CoinListObject::CoinListObject(const CoinListObject& object, const CoinList* parent, const int id) :
Object("CoinListObject", parent, id)
{
*this = object;
}
-CoinListObject::CoinListObject(const QDomElement& xml, const CoinList* parent, const int id) :
+Pokemod::CoinListObject::CoinListObject(const QDomElement& xml, const CoinList* parent, const int id) :
Object("CoinListObject", parent, id)
{
load(xml, id);
}
-void CoinListObject::validate()
+void Pokemod::CoinListObject::validate()
{
TEST(setType, type);
TEST(setObject, object);
TEST(setAmount, amount);
}
-void CoinListObject::load(const QDomElement& xml, int id)
+void Pokemod::CoinListObject::load(const QDomElement& xml, int id)
{
LOAD_ID();
LOAD(int, type);
@@ -67,7 +67,7 @@ void CoinListObject::load(const QDomElement& xml, int id)
LOAD(int, cost);
}
-QDomElement CoinListObject::save() const
+QDomElement Pokemod::CoinListObject::save() const
{
SAVE_CREATE();
SAVE(int, type);
@@ -77,7 +77,7 @@ QDomElement CoinListObject::save() const
return xml;
}
-void CoinListObject::setType(const int type)
+void Pokemod::CoinListObject::setType(const int type)
{
if (End <= type)
{
@@ -87,7 +87,7 @@ void CoinListObject::setType(const int type)
CHECK(type);
}
-void CoinListObject::setObject(const int object)
+void Pokemod::CoinListObject::setObject(const int object)
{
if (((Item == m_type) && (static_cast<const Pokemod*>(pokemod())->itemIndex(object) == INT_MAX)) || ((Species == m_type) && (static_cast<const Pokemod*>(pokemod())->speciesIndex(object) == INT_MAX)))
{
@@ -97,7 +97,7 @@ void CoinListObject::setObject(const int object)
CHECK(object);
}
-void CoinListObject::setAmount(const int amount)
+void Pokemod::CoinListObject::setAmount(const int amount)
{
if (!amount || ((Species == m_type) && (1 < amount)))
{
@@ -107,32 +107,32 @@ void CoinListObject::setAmount(const int amount)
CHECK(amount);
}
-void CoinListObject::setCost(const int cost)
+void Pokemod::CoinListObject::setCost(const int cost)
{
CHECK(cost);
}
-int CoinListObject::type() const
+int Pokemod::CoinListObject::type() const
{
return m_type;
}
-int CoinListObject::object() const
+int Pokemod::CoinListObject::object() const
{
return m_object;
}
-int CoinListObject::amount() const
+int Pokemod::CoinListObject::amount() const
{
return m_amount;
}
-int CoinListObject::cost() const
+int Pokemod::CoinListObject::cost() const
{
return m_cost;
}
-CoinListObject& CoinListObject::operator=(const CoinListObject& rhs)
+Pokemod::CoinListObject& Pokemod::CoinListObject::operator=(const CoinListObject& rhs)
{
if (this == &rhs)
return *this;