From a1fff27395d1930820e6c007fdedd8e9dc58f0b3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 21 Jan 2008 17:13:11 +0000 Subject: [FIX] PokeMod namespace removed [ADD] MoveEffect editing form for PokéModr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@38 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/Store.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'pokemod/Store.cpp') 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 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; -- cgit