summaryrefslogtreecommitdiffstats
path: root/pokemod/Store.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-01-19 01:22:22 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-01-19 01:22:22 +0000
commit342d0201b07d9030fced2f3baf3ecdefc841879a (patch)
treef0715cc7b267e2ce2bc93971d9e95c7e0c9b2b62 /pokemod/Store.cpp
parentd017d90324a439dfb4bd3f25d30deb672bc40fd4 (diff)
downloadsigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.gz
sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.xz
sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.zip
[DEL] Removed PokeGen namespace
[ADD] general/AudioCache.h completed [DEL] VERSION removed from subdir .pro files [DEL] audio/ git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@33 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 c4ec13fd..626b249d 100644
--- a/pokemod/Store.cpp
+++ b/pokemod/Store.cpp
@@ -22,25 +22,25 @@
#include "Store.h"
-PokeGen::PokeMod::Store::Store(const Pokemod& par, const unsigned _id) :
+PokeMod::Store::Store(const Pokemod& par, const unsigned _id) :
Object(par, _id),
name("")
{
}
-PokeGen::PokeMod::Store::Store(const Pokemod& par, const Store& s, const unsigned _id) :
+PokeMod::Store::Store(const Pokemod& par, const Store& s, const unsigned _id) :
Object(par, _id)
{
*this = s;
}
-PokeGen::PokeMod::Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) :
+PokeMod::Store::Store(const Pokemod& par, const QString& fname, const unsigned _id) :
Object(par, _id)
{
load(fname, _id);
}
-bool PokeGen::PokeMod::Store::validate() const
+bool PokeMod::Store::validate() const
{
bool valid = true;
pokemod.validationMsg(QString("---Store \"%1\" with id %2---").arg(name).arg(id), Pokemod::V_Msg);
@@ -75,7 +75,7 @@ bool PokeGen::PokeMod::Store::validate() const
return valid;
}
-void PokeGen::PokeMod::Store::load(const QString& fname, const unsigned _id) throw(Exception)
+void PokeMod::Store::load(const QString& fname, const unsigned _id) throw(Exception)
{
Ini ini(fname);
if (_id == UINT_MAX)
@@ -95,7 +95,7 @@ void PokeGen::PokeMod::Store::load(const QString& fname, const unsigned _id) thr
}
}
-void PokeGen::PokeMod::Store::save() const throw(Exception)
+void PokeMod::Store::save() const throw(Exception)
{
Ini ini;
ini.addField("id", id);
@@ -106,12 +106,12 @@ void PokeGen::PokeMod::Store::save() const throw(Exception)
ini.save(QString("%1/store/%2.pini").arg(pokemod.getPath()).arg(name));
}
-void PokeGen::PokeMod::Store::setName(const QString& n)
+void PokeMod::Store::setName(const QString& n)
{
name = n;
}
-void PokeGen::PokeMod::Store::setItem(const unsigned itm, const bool it) throw(Exception)
+void PokeMod::Store::setItem(const unsigned itm, const bool it) throw(Exception)
{
for (QMutableListIterator<unsigned> i(items); i.hasNext(); )
{
@@ -128,12 +128,12 @@ void PokeGen::PokeMod::Store::setItem(const unsigned itm, const bool it) throw(E
items.append(itm);
}
-QString PokeGen::PokeMod::Store::getName() const
+QString PokeMod::Store::getName() const
{
return name;
}
-bool PokeGen::PokeMod::Store::getItem(const unsigned it) const
+bool PokeMod::Store::getItem(const unsigned it) const
{
for (QListIterator<unsigned> i(items); i.hasNext(); )
{
@@ -143,7 +143,7 @@ bool PokeGen::PokeMod::Store::getItem(const unsigned it) const
return false;
}
-PokeGen::PokeMod::Store& PokeGen::PokeMod::Store::operator=(const Store& rhs)
+PokeMod::Store& PokeMod::Store::operator=(const Store& rhs)
{
if (this == &rhs)
return *this;