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.h | |
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.h')
-rw-r--r-- | pokemod/CoinListObject.h | 79 |
1 files changed, 38 insertions, 41 deletions
diff --git a/pokemod/CoinListObject.h b/pokemod/CoinListObject.h index 3cb69609..d3bc1240 100644 --- a/pokemod/CoinListObject.h +++ b/pokemod/CoinListObject.h @@ -28,47 +28,44 @@ #include "../general/Exception.h" #include "Object.h" -namespace PokeMod +class Pokemod; + +class CoinListObject : public Object { - class Pokemod; - - class CoinListObject : public Object - { - public: - enum - { - Item = 0, - Pokemon = 1, - End = 2 - }; - static const QStringList TypeStr; - - CoinListObject(const Pokemod& par, const unsigned _id); - CoinListObject(const Pokemod& par, const CoinListObject& o, const unsigned _id = UINT_MAX); - CoinListObject(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX); - - void load(const QString& fname, const unsigned _id = UINT_MAX) throw(Exception); - void save(const QString& coinList) const throw(Exception); - - void setType(const unsigned t) throw(BoundsException); - void setObject(const unsigned o) throw(BoundsException); - void setAmount(const unsigned a) throw(BoundsException); - void setCost(const unsigned c); - - unsigned getType() const; - unsigned getObject() const; - unsigned getAmount() const; - unsigned getCost() const; - - CoinListObject& operator=(const CoinListObject& o); - private: - bool validate() const; - - unsigned type; - unsigned object; - unsigned amount; - unsigned cost; - }; -} + public: + enum + { + Item = 0, + Pokemon = 1, + End = 2 + }; + static const QStringList TypeStr; + + CoinListObject(const Pokemod& par, const unsigned _id); + CoinListObject(const Pokemod& par, const CoinListObject& o, const unsigned _id = UINT_MAX); + CoinListObject(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX); + + void load(const QString& fname, const unsigned _id = UINT_MAX) throw(Exception); + void save(const QString& coinList) const throw(Exception); + + void setType(const unsigned t) throw(BoundsException); + void setObject(const unsigned o) throw(BoundsException); + void setAmount(const unsigned a) throw(BoundsException); + void setCost(const unsigned c); + + unsigned getType() const; + unsigned getObject() const; + unsigned getAmount() const; + unsigned getCost() const; + + CoinListObject& operator=(const CoinListObject& o); + private: + bool validate() const; + + unsigned type; + unsigned object; + unsigned amount; + unsigned cost; +}; #endif |