diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-05-26 13:36:39 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-05-26 13:36:39 +0000 |
| commit | dc9682d704118840457aa3434711eba6e003eafc (patch) | |
| tree | 40ccccb7c4a220b656ec92d61277a44380cf30bd /pokemod/PokemonMove.cpp | |
| parent | 75b7d5c767428f7061365a186cb17a22de4112cc (diff) | |
| download | sigen-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/PokemonMove.cpp')
| -rw-r--r-- | pokemod/PokemonMove.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pokemod/PokemonMove.cpp b/pokemod/PokemonMove.cpp index 53703387..848fc116 100644 --- a/pokemod/PokemonMove.cpp +++ b/pokemod/PokemonMove.cpp @@ -25,7 +25,7 @@ extern PokeGen::PokeMod::Pokemod curPokeMod;
-PokeGen::PokeMod::PokemonMove::PokemonMove(unsigned _id)
+PokeGen::PokeMod::PokemonMove::PokemonMove(const unsigned _id)
{
LogCtor("PokemonMove", _id);
move = -1;
@@ -34,7 +34,7 @@ PokeGen::PokeMod::PokemonMove::PokemonMove(unsigned _id) id = _id;
}
-PokeGen::PokeMod::PokemonMove::PokemonMove(Ini &ini, unsigned _id)
+PokeGen::PokeMod::PokemonMove::PokemonMove(Ini &ini, const unsigned _id)
{
LogCtorIni("PokemonMove", _id);
ImportIni(ini, _id);
@@ -96,7 +96,7 @@ void PokeGen::PokeMod::PokemonMove::Validate(const wxListBox &output) }
#endif
-void PokeGen::PokeMod::PokemonMove::ImportIni(Ini &ini, unsigned _id)
+void PokeGen::PokeMod::PokemonMove::ImportIni(Ini &ini, const unsigned _id)
{
LogImportStart("PokemonMove");
if (_id == UINT_MAX)
@@ -127,7 +127,7 @@ void PokeGen::PokeMod::PokemonMove::ExportIni(std::ofstream &fout, const String LogExportOver("PokemonMove", id);
}
-void PokeGen::PokeMod::PokemonMove::SetMove(int m)
+void PokeGen::PokeMod::PokemonMove::SetMove(const int m)
{
LogSetVar("PokemonMove", id, "move", m);
move = m;
@@ -140,13 +140,13 @@ void PokeGen::PokeMod::PokemonMove::SetMove(const String &m) move = temp->GetId();
}
-void PokeGen::PokeMod::PokemonMove::SetLevel(unsigned l)
+void PokeGen::PokeMod::PokemonMove::SetLevel(const unsigned l)
{
LogSetVar("PokemonMove", id, "level", l, GetMoveString());
level = l;
}
-void PokeGen::PokeMod::PokemonMove::SetWild(unsigned w)
+void PokeGen::PokeMod::PokemonMove::SetWild(const unsigned w)
{
LogSetVar("PokemonMove", id, "wild", w, GetMoveString());
wild = w;
|
