summaryrefslogtreecommitdiffstats
path: root/pokemod/Badge.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-05-26 13:36:39 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-05-26 13:36:39 +0000
commitdc9682d704118840457aa3434711eba6e003eafc (patch)
tree40ccccb7c4a220b656ec92d61277a44380cf30bd /pokemod/Badge.h
parent75b7d5c767428f7061365a186cb17a22de4112cc (diff)
downloadsigen-dc9682d704118840457aa3434711eba6e003eafc.tar.gz
sigen-dc9682d704118840457aa3434711eba6e003eafc.tar.xz
sigen-dc9682d704118840457aa3434711eba6e003eafc.zip
const arguments where possible, EggGroup, Move beginnings
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@15 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Badge.h')
-rw-r--r--pokemod/Badge.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/pokemod/Badge.h b/pokemod/Badge.h
index 6606b45c..c28bc864 100644
--- a/pokemod/Badge.h
+++ b/pokemod/Badge.h
@@ -39,28 +39,28 @@ namespace PokeGen
class Badge : public Object
{
public:
- Badge(unsigned _id);
- Badge(Ini &ini, unsigned _id = UINT_MAX);
+ Badge(const unsigned _id);
+ Badge(Ini &ini, const unsigned _id = UINT_MAX);
~Badge();
- void ImportIni(Ini &ini, unsigned _id = UINT_MAX);
+ void ImportIni(Ini &ini, const unsigned _id = UINT_MAX);
void ExportIni(std::ofstream &fout) const;
void SetName(const String &n);
void SetFace(const Path &f);
void SetBadge(const Path &b);
- void SetObey(unsigned o);
- void SetStat(unsigned s, unsigned n, unsigned d);
- void SetStatNum(unsigned s, unsigned n);
- void SetStatDenom(unsigned s, unsigned d);
- void SetHm(unsigned h, bool hb);
+ void SetObey(const unsigned o);
+ void SetStat(const unsigned s, const unsigned n, const unsigned d);
+ void SetStatNum(const unsigned s, const unsigned n);
+ void SetStatDenom(const unsigned s, const unsigned d);
+ void SetHm(const unsigned h, const bool hb);
String GetName() const;
Path GetFace() const;
Path GetBadge() const;
unsigned GetObey() const;
- Frac GetStat(unsigned s) const;
- bool GetHm(unsigned h) const;
+ Frac GetStat(const unsigned s) const;
+ bool GetHm(const unsigned h) const;
private:
void Validate();
# ifdef PG_DEBUG_WINDOW