summaryrefslogtreecommitdiffstats
path: root/pokemod/Tile.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/Tile.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/Tile.h')
-rw-r--r--pokemod/Tile.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/pokemod/Tile.h b/pokemod/Tile.h
index 05e1b393..4a2866b6 100644
--- a/pokemod/Tile.h
+++ b/pokemod/Tile.h
@@ -44,32 +44,32 @@ class Tile : public Object
};
static const QStringList ForceStr;
- Tile(const Pokemod& par, const unsigned _id);
- Tile(const Pokemod& par, const Tile& t, const unsigned _id);
- Tile(const Pokemod& par, const QString& fname, const unsigned _id = UINT_MAX);
+ Tile(const Pokemod& par, const int _id);
+ Tile(const Pokemod& par, const Tile& t, const int _id);
+ Tile(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 setPic(const QString& p) throw(OpenException);
- void setFrom(const unsigned d, const bool f) throw(BoundsException);
- void setWildChance(const unsigned n, const unsigned d) throw(Exception);
- void setWildChanceNumerator(const unsigned n) throw(Exception);
- void setWildChanceDenominator(const unsigned d) throw(Exception);
- void setHMType(const unsigned h) throw(BoundsException);
- void setUnder(const unsigned u) throw(Exception);
- void setForceType(const unsigned f) throw(BoundsException);
- void setForceDirection(const unsigned f) throw(Exception);
+ void setFrom(const int d, const bool f) throw(BoundsException);
+ void setWildChance(const int n, const int d) throw(Exception);
+ void setWildChanceNumerator(const int n) throw(Exception);
+ void setWildChanceDenominator(const int d) throw(Exception);
+ void setHMType(const int h) throw(BoundsException);
+ void setUnder(const int u) throw(Exception);
+ void setForceType(const int f) throw(BoundsException);
+ void setForceDirection(const int f) throw(Exception);
QString getName() const;
QString getPic() const;
- bool getFrom(const unsigned d) const throw(BoundsException);
+ bool getFrom(const int d) const throw(BoundsException);
Frac getWildChance() const;
- unsigned getHMType() const;
- unsigned getUnder() const;
- unsigned getForceType() const;
- unsigned getForceDirection() const;
+ int getHMType() const;
+ int getUnder() const;
+ int getForceType() const;
+ int getForceDirection() const;
Tile& operator=(const Tile& rhs);
private:
@@ -79,10 +79,10 @@ class Tile : public Object
QString pic;
bool from[D_End];
Frac wildChance;
- unsigned hmType;
- unsigned under;
- unsigned forceType;
- unsigned forceDirection;
+ int hmType;
+ int under;
+ int forceType;
+ int forceDirection;
};
#endif