summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinList.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/CoinList.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/CoinList.h')
-rw-r--r--pokemod/CoinList.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/pokemod/CoinList.h b/pokemod/CoinList.h
index fdf29c28..7154eb39 100644
--- a/pokemod/CoinList.h
+++ b/pokemod/CoinList.h
@@ -35,37 +35,37 @@ class Pokemod;
class CoinList : public Object
{
public:
- CoinList(const Pokemod& par, const unsigned _id);
- CoinList(const Pokemod& par, const CoinList& c, const unsigned _id);
- CoinList(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX);
+ CoinList(const Pokemod& par, const int _id);
+ CoinList(const Pokemod& par, const CoinList& c, const int _id);
+ CoinList(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 throw(Exception);
void setName(const QString& n);
- void setValue(const unsigned v) throw(Exception);
+ void setValue(const int v) throw(Exception);
QString getName() const;
- unsigned getValue() const;
+ int getValue() const;
- const CoinListObject& getItem(const unsigned i) const throw(IndexException);
- CoinListObject& getItem(const unsigned i) throw(IndexException);
- const CoinListObject& getItemByID(const unsigned i) const throw(IndexException);
- CoinListObject& getItemByID(const unsigned i) throw(IndexException);
- unsigned getItemIndex(const unsigned _id) const;
- unsigned getItemCount() const;
+ const CoinListObject& getItem(const int i) const throw(IndexException);
+ CoinListObject& getItem(const int i) throw(IndexException);
+ const CoinListObject& getItemByID(const int i) const throw(IndexException);
+ CoinListObject& getItemByID(const int i) throw(IndexException);
+ int getItemIndex(const int _id) const;
+ int getItemCount() const;
CoinListObject& newItem();
CoinListObject& newItem(const QString& fname);
CoinListObject& newItem(const CoinListObject& c);
- void deleteItem(const unsigned i) throw(IndexException);
+ void deleteItem(const int i) throw(IndexException);
CoinList& operator=(const CoinList& rhs);
private:
bool validate() const;
- unsigned getNewId() const;
+ int getNewId() const;
QString name;
- unsigned value;
+ int value;
QList<CoinListObject> items;
};