diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-21 17:13:11 +0000 |
| commit | a1fff27395d1930820e6c007fdedd8e9dc58f0b3 (patch) | |
| tree | f61c6b86b4a415fdc2bd0f7d6ca9bfdbfd8e8b64 /pokemod/CoinListObject.cpp | |
| parent | 342fa6879e9fd8a757ebabe0a30370137b8d83a7 (diff) | |
| download | sigen-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/CoinListObject.cpp')
| -rw-r--r-- | pokemod/CoinListObject.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/pokemod/CoinListObject.cpp b/pokemod/CoinListObject.cpp index b6dae50f..fcc4579a 100644 --- a/pokemod/CoinListObject.cpp +++ b/pokemod/CoinListObject.cpp @@ -23,9 +23,9 @@ #include "Pokemod.h" #include "CoinListObject.h" -const QStringList PokeMod::CoinListObject::TypeStr = QStringList() << "Item" << "Pokémon"; +const QStringList CoinListObject::TypeStr = QStringList() << "Item" << "Pokémon"; -PokeMod::CoinListObject::CoinListObject(const Pokemod& par, const unsigned _id) : +CoinListObject::CoinListObject(const Pokemod& par, const unsigned _id) : Object(par, _id), type(Item), object(UINT_MAX), @@ -34,19 +34,19 @@ PokeMod::CoinListObject::CoinListObject(const Pokemod& par, const unsigned _id) { } -PokeMod::CoinListObject::CoinListObject(const Pokemod& par, const CoinListObject& o, const unsigned _id) : +CoinListObject::CoinListObject(const Pokemod& par, const CoinListObject& o, const unsigned _id) : Object(par, _id) { *this = o; } -PokeMod::CoinListObject::CoinListObject(const Pokemod& par, const QString& fname, const unsigned _id) : +CoinListObject::CoinListObject(const Pokemod& par, const QString& fname, const unsigned _id) : Object(par, _id) { load(fname, _id); } -bool PokeMod::CoinListObject::validate() const +bool CoinListObject::validate() const { bool valid = true; pokemod.validationMsg(QString("------Object with id %1---").arg(id), Pokemod::V_Msg); @@ -79,7 +79,7 @@ bool PokeMod::CoinListObject::validate() const return valid; } -void PokeMod::CoinListObject::load(const QString& fname, const unsigned _id) throw(Exception) +void CoinListObject::load(const QString& fname, const unsigned _id) throw(Exception) { Ini ini(fname); if (_id == UINT_MAX) @@ -92,7 +92,7 @@ void PokeMod::CoinListObject::load(const QString& fname, const unsigned _id) thr ini.getValue("cost", cost, 0); } -void PokeMod::CoinListObject::save(const QString& coinList) const throw(Exception) +void CoinListObject::save(const QString& coinList) const throw(Exception) { Ini ini; ini.addField("id", id); @@ -103,7 +103,7 @@ void PokeMod::CoinListObject::save(const QString& coinList) const throw(Exceptio ini.save(QString("%1/coinlist/%2/item/%3.pini").arg(pokemod.getPath()).arg(coinList).arg(id)); } -void PokeMod::CoinListObject::setType(const unsigned t) throw(BoundsException) +void CoinListObject::setType(const unsigned t) throw(BoundsException) { if (End <= t) throw(BoundsException("CoinListObject", "type")); @@ -111,46 +111,46 @@ void PokeMod::CoinListObject::setType(const unsigned t) throw(BoundsException) object = UINT_MAX; } -void PokeMod::CoinListObject::setObject(const unsigned o) throw(BoundsException) +void CoinListObject::setObject(const unsigned o) throw(BoundsException) { if (((type == Item) && (pokemod.getItemIndex(object) == UINT_MAX)) || ((type == Pokemon) && (pokemod.getSpeciesIndex(object) == UINT_MAX))) throw(BoundsException("CoinListObject", "object")); object = o; } -void PokeMod::CoinListObject::setAmount(const unsigned a) throw(BoundsException) +void CoinListObject::setAmount(const unsigned a) throw(BoundsException) { if (!a) throw(BoundsException("CoinListObject", "amount")); amount = a; } -void PokeMod::CoinListObject::setCost(const unsigned c) +void CoinListObject::setCost(const unsigned c) { cost = c; } -unsigned PokeMod::CoinListObject::getType() const +unsigned CoinListObject::getType() const { return type; } -unsigned PokeMod::CoinListObject::getObject() const +unsigned CoinListObject::getObject() const { return object; } -unsigned PokeMod::CoinListObject::getAmount() const +unsigned CoinListObject::getAmount() const { return amount; } -unsigned PokeMod::CoinListObject::getCost() const +unsigned CoinListObject::getCost() const { return cost; } -PokeMod::CoinListObject& PokeMod::CoinListObject::operator=(const CoinListObject& rhs) +CoinListObject& CoinListObject::operator=(const CoinListObject& rhs) { if (this == &rhs) return *this; |
