summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinListObject.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-02-01 20:21:10 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-02-01 20:21:10 +0000
commit91df1e8e35656314a8f6574521f1804d926bddbb (patch)
tree84e941b992fcdf35d0c7460fa7c84223a8422958 /pokemod/CoinListObject.h
parent743f74512606cb24fae199dd45cf1a53837b4d16 (diff)
downloadsigen-91df1e8e35656314a8f6574521f1804d926bddbb.tar.gz
sigen-91df1e8e35656314a8f6574521f1804d926bddbb.tar.xz
sigen-91df1e8e35656314a8f6574521f1804d926bddbb.zip
[FIX] Only committed general last time
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@55 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinListObject.h')
-rw-r--r--pokemod/CoinListObject.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/pokemod/CoinListObject.h b/pokemod/CoinListObject.h
index d3bc1240..3011f2ad 100644
--- a/pokemod/CoinListObject.h
+++ b/pokemod/CoinListObject.h
@@ -36,36 +36,36 @@ class CoinListObject : public Object
enum
{
Item = 0,
- Pokemon = 1,
+ Species = 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);
+ CoinListObject(const Pokemod& par, const int _id);
+ CoinListObject(const Pokemod& par, const CoinListObject& o, const int _id);
+ CoinListObject(const Pokemod& par, const QString& fname, const int _id = -1);
- void load(const QString& fname, const unsigned _id = UINT_MAX) throw(Exception);
+ void load(const QString& fname, const int _id = -1) 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);
+ void setType(const int t) throw(BoundsException);
+ void setObject(const int o) throw(BoundsException);
+ void setAmount(const int a) throw(BoundsException);
+ void setCost(const int c);
- unsigned getType() const;
- unsigned getObject() const;
- unsigned getAmount() const;
- unsigned getCost() const;
+ int getType() const;
+ int getObject() const;
+ int getAmount() const;
+ int getCost() const;
CoinListObject& operator=(const CoinListObject& o);
private:
bool validate() const;
- unsigned type;
- unsigned object;
- unsigned amount;
- unsigned cost;
+ int type;
+ int object;
+ int amount;
+ int cost;
};
#endif