summaryrefslogtreecommitdiffstats
path: root/pokemod/PokemonEvolution.cpp
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/PokemonEvolution.cpp
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/PokemonEvolution.cpp')
-rw-r--r--pokemod/PokemonEvolution.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/pokemod/PokemonEvolution.cpp b/pokemod/PokemonEvolution.cpp
index 94148e2b..8290532c 100644
--- a/pokemod/PokemonEvolution.cpp
+++ b/pokemod/PokemonEvolution.cpp
@@ -25,7 +25,7 @@
extern PokeGen::PokeMod::Pokemod curPokeMod;
-PokeGen::PokeMod::PokemonEvolution::PokemonEvolution(unsigned _id)
+PokeGen::PokeMod::PokemonEvolution::PokemonEvolution(const unsigned _id)
{
LogCtor("PokemonEvolution", _id);
species = -1;
@@ -36,7 +36,7 @@ PokeGen::PokeMod::PokemonEvolution::PokemonEvolution(unsigned _id)
id = _id;
}
-PokeGen::PokeMod::PokemonEvolution::PokemonEvolution(Ini &ini, unsigned _id)
+PokeGen::PokeMod::PokemonEvolution::PokemonEvolution(Ini &ini, const unsigned _id)
{
LogCtorIni("PokemonEvolution", _id);
ImportIni(ini, _id);
@@ -109,7 +109,7 @@ void PokeGen::PokeMod::PokemonEvolution::Validate(const wxListBox &output)
}
#endif
-void PokeGen::PokeMod::PokemonEvolution::ImportIni(Ini &ini, unsigned _id)
+void PokeGen::PokeMod::PokemonEvolution::ImportIni(Ini &ini, const unsigned _id)
{
LogImportStart("PokemonEvolution");
if (_id == UINT_MAX)
@@ -144,7 +144,7 @@ void PokeGen::PokeMod::PokemonEvolution::ExportIni(std::ofstream &fout, const St
LogExportOver("PokemonEvolution", id);
}
-void PokeGen::PokeMod::PokemonEvolution::SetSpecies(int s)
+void PokeGen::PokeMod::PokemonEvolution::SetSpecies(const int s)
{
LogSetVar("PokemonEvolution", id, "species", s);
species = s;
@@ -157,19 +157,19 @@ void PokeGen::PokeMod::PokemonEvolution::SetSpecies(const String &s)
species = temp->GetId();
}
-void PokeGen::PokeMod::PokemonEvolution::SetStyle(int s)
+void PokeGen::PokeMod::PokemonEvolution::SetStyle(const int s)
{
LogSetVar("PokemonEvolution", id, "style", s);
style = s;
}
-void PokeGen::PokeMod::PokemonEvolution::SetLevel(unsigned l)
+void PokeGen::PokeMod::PokemonEvolution::SetLevel(const unsigned l)
{
LogSetVar("PokemonEvolution", id, "level", l);
level = l;
}
-void PokeGen::PokeMod::PokemonEvolution::SetItem(int i)
+void PokeGen::PokeMod::PokemonEvolution::SetItem(const int i)
{
LogSetVar("PokemonEvolution", id, "item", i);
item = i;
@@ -182,7 +182,7 @@ void PokeGen::PokeMod::PokemonEvolution::SetItem(const String &i)
item = temp->GetId();
}
-void PokeGen::PokeMod::PokemonEvolution::SetHappiness(unsigned h)
+void PokeGen::PokeMod::PokemonEvolution::SetHappiness(const unsigned h)
{
LogSetVar("PokemonEvolution", id, "happiness", h);
happiness = h;