diff options
Diffstat (limited to 'pokemod/Store.cpp')
| -rw-r--r-- | pokemod/Store.cpp | 22 |
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; |
