summaryrefslogtreecommitdiffstats
path: root/pokemod/Store.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-21 17:13:11 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-21 17:13:11 +0000
commita1fff27395d1930820e6c007fdedd8e9dc58f0b3 (patch)
treef61c6b86b4a415fdc2bd0f7d6ca9bfdbfd8e8b64 /pokemod/Store.cpp
parent342fa6879e9fd8a757ebabe0a30370137b8d83a7 (diff)
downloadsigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.gz
sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.tar.xz
sigen-a1fff27395d1930820e6c007fdedd8e9dc58f0b3.zip
[FIX] PokeMod namespace removed
[ADD] MoveEffect editing form for PokéModr git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@38 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Store.cpp')
-rw-r--r--pokemod/Store.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/pokemod/Store.cpp b/pokemod/Store.cpp
index 5ab49b73..1b5333d4 100644
--- a/pokemod/Store.cpp
+++ b/pokemod/Store.cpp
@@ -26,25 +26,25 @@
#include "Pokemod.h"
#include "Store.h"
-PokeMod::Store::Store(const Pokemod& par, const unsigned _id) :
+Store::Store(const Pokemod& par, const unsigned _id) :
Object(par, _id),
name("")
{
}
-PokeMod::Store::Store(const Pokemod& par, const Store& s, const unsigned _id) :
+Store::Store(const Pokemod& par, const Store& s, const unsigned _id) :
Object(par, _id)
{
*this = s;
}
-PokeMod::Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) :
+Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) :
Object(par, _id)
{
load(fname, _id);
}
-bool PokeMod::Store::validate() const
+bool Store::validate() const
{
bool valid = true;
pokemod.validationMsg(QString("---Store \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg);
@@ -79,7 +79,7 @@ bool PokeMod::Store::validate() const
return valid;
}
-void PokeMod::Store::load(const QString& fname, const unsigned _id) throw(Exception)
+void Store::load(const QString& fname, const unsigned _id) throw(Exception)
{
Ini ini(fname);
if (_id == UINT_MAX)
@@ -99,7 +99,7 @@ void PokeMod::Store::load(const QString& fname, const unsigned _id) throw(Except
}
}
-void PokeMod::Store::save() const throw(Exception)
+void Store::save() const throw(Exception)
{
Ini ini;
ini.addField("id", id);
@@ -110,12 +110,12 @@ void PokeMod::Store::save() const throw(Exception)
ini.save(QString("%1/store/%2.pini").arg(pokemod.getPath()).arg(name));
}
-void PokeMod::Store::setName(const QString& n)
+void Store::setName(const QString& n)
{
name = n;
}
-void PokeMod::Store::setItem(const unsigned itm, const bool it) throw(Exception)
+void Store::setItem(const unsigned itm, const bool it) throw(Exception)
{
if (pokemod.getItemIndex(itm) == UINT_MAX)
throw(BoundsException("Store", "item"));
@@ -134,12 +134,12 @@ void PokeMod::Store::setItem(const unsigned itm, const bool it) throw(Exception)
items.append(itm);
}
-QString PokeMod::Store::getName() const
+QString Store::getName() const
{
return name;
}
-bool PokeMod::Store::getItem(const unsigned itm) const
+bool Store::getItem(const unsigned itm) const
{
for (QListIterator<unsigned> i(items); i.hasNext(); )
{
@@ -149,7 +149,7 @@ bool PokeMod::Store::getItem(const unsigned itm) const
return false;
}
-PokeMod::Store& PokeMod::Store::operator=(const Store& rhs)
+Store& Store::operator=(const Store& rhs)
{
if (this == &rhs)
return *this;