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/ItemEffect.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/ItemEffect.cpp')
| -rw-r--r-- | pokemod/ItemEffect.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/pokemod/ItemEffect.cpp b/pokemod/ItemEffect.cpp index 64f9a4d5..2192d56b 100644 --- a/pokemod/ItemEffect.cpp +++ b/pokemod/ItemEffect.cpp @@ -25,7 +25,7 @@ extern PokeGen::PokeMod::Pokemod curPokeMod;
-PokeGen::PokeMod::ItemEffect::ItemEffect(unsigned _id)
+PokeGen::PokeMod::ItemEffect::ItemEffect(const unsigned _id)
{
LogCtor("ItemEffect", _id);
overworld = false;
@@ -40,7 +40,7 @@ PokeGen::PokeMod::ItemEffect::ItemEffect(unsigned _id) id = _id;
}
-PokeGen::PokeMod::ItemEffect::ItemEffect(Ini &xml, unsigned _id)
+PokeGen::PokeMod::ItemEffect::ItemEffect(Ini &ini, const unsigned _id)
{
LogCtorIni("ItemEffect", _id);
ImportIni(ini, _id);
@@ -65,7 +65,7 @@ void PokeGen::PokeMod::ItemEffect::Validate() LogValidateOver("ItemEffect", id, isValid);
}
-void PokeGen::PokeMod::ItemEffect::ImportIni(Ini &ini, unsigned _id)
+void PokeGen::PokeMod::ItemEffect::ImportIni(Ini &ini, const unsigned _id)
{
LogImportStart("ItemEffect");
if (_id == UINT_MAX)
@@ -113,25 +113,25 @@ void PokeGen::PokeMod::ItemEffect::ExportIni(std::ofstream &fout, const String & LogExportOver("ItemEffect", id);
}
-void PokeGen::PokeMod::ItemEffect::SetOverworld(bool o)
+void PokeGen::PokeMod::ItemEffect::SetOverworld(const bool o)
{
LogSetVar("ItemEffect", id, "overworld", o);
overworld = o;
}
-void PokeGen::PokeMod::ItemEffect::SetBattle(bool b)
+void PokeGen::PokeMod::ItemEffect::SetBattle(const bool b)
{
LogSetVar("ItemEffect", id, "battle", b);
battle = b;
}
-void PokeGen::PokeMod::ItemEffect::SetHeld(bool h)
+void PokeGen::PokeMod::ItemEffect::SetHeld(const bool h)
{
LogSetVar("ItemEffect", id, "held", h);
held = h;
}
-void PokeGen::PokeMod::ItemEffect::SetEffect(int e)
+void PokeGen::PokeMod::ItemEffect::SetEffect(const int e)
{
LogSetVar("ItemEffect", id, "effect", e);
if ((IE_NONE < e) && (e < IE_END))
@@ -160,7 +160,7 @@ void PokeGen::PokeMod::ItemEffect::SetEffect(const String &e) }
// TODO (Ben#1#): Values code
-void PokeGen::PokeMod::ItemEffect::SetVal1(int v1)
+void PokeGen::PokeMod::ItemEffect::SetVal1(const int v1)
{
switch (effect)
{
@@ -243,7 +243,7 @@ void PokeGen::PokeMod::ItemEffect::SetVal1(int v1) }
}
-void PokeGen::PokeMod::ItemEffect::SetVal2(int v2)
+void PokeGen::PokeMod::ItemEffect::SetVal2(const int v2)
{
switch (effect)
{
@@ -348,7 +348,7 @@ void PokeGen::PokeMod::ItemEffect::SetVal3(const PMFrac &v3) }
}
-void PokeGen::PokeMod::ItemEffect::SetVal3(unsigned n, unsigned d)
+void PokeGen::PokeMod::ItemEffect::SetVal3(const unsigned n, const unsigned d)
{
switch (effect)
{
@@ -397,7 +397,7 @@ void PokeGen::PokeMod::ItemEffect::SetVal3(unsigned n, unsigned d) }
}
-void PokeGen::PokeMod::ItemEffect::SetVal3Num(unsigned n)
+void PokeGen::PokeMod::ItemEffect::SetVal3Num(const unsigned n)
{
switch (effect)
{
@@ -446,7 +446,7 @@ void PokeGen::PokeMod::ItemEffect::SetVal3Num(unsigned n) }
}
-void PokeGen::PokeMod::ItemEffect::SetVal3Denom(unsigned d)
+void PokeGen::PokeMod::ItemEffect::SetVal3Denom(const unsigned d)
{
switch (effect)
{
@@ -495,7 +495,7 @@ void PokeGen::PokeMod::ItemEffect::SetVal3Denom(unsigned d) }
}
-void PokeGen::PokeMod::ItemEffect::SetVal4(int v4)
+void PokeGen::PokeMod::ItemEffect::SetVal4(const int v4)
{
switch (effect)
{
@@ -653,7 +653,7 @@ void PokeGen::PokeMod::ItemEffect::SetVal4(const PMString &v4) }
}
-void PokeGen::PokeMod::ItemEffect::SetVal5(int v5)
+void PokeGen::PokeMod::ItemEffect::SetVal5(const int v5)
{
switch (effect)
{
@@ -745,73 +745,73 @@ void PokeGen::PokeMod::ItemEffect::SetVal5(const PMString &v5) }
}
-bool PokeGen::PokeMod::ItemEffect::GetOverworld()
+bool PokeGen::PokeMod::ItemEffect::GetOverworld() const
{
PMLog("ItemEffect: Fetching overworld", PM_DEBUG_DEBUG);
return overworld;
}
-bool PokeGen::PokeMod::ItemEffect::GetBattle()
+bool PokeGen::PokeMod::ItemEffect::GetBattle() const
{
PMLog("ItemEffect: Fetching battle", PM_DEBUG_DEBUG);
return battle;
}
-bool PokeGen::PokeMod::ItemEffect::GetHeld()
+bool PokeGen::PokeMod::ItemEffect::GetHeld() const
{
PMLog("ItemEffect: Fetching held", PM_DEBUG_DEBUG);
return held;
}
-int PokeGen::PokeMod::ItemEffect::GetEffect()
+int PokeGen::PokeMod::ItemEffect::GetEffect() const
{
PMLog("ItemEffect: Fetching effect", PM_DEBUG_DEBUG);
return effect;
}
- PokeGen::PokeMod::ItemEffect::GetVal1()
+ PokeGen::PokeMod::ItemEffect::GetVal1() const
{
PMLog("ItemEffect: Fetching val1", PM_DEBUG_DEBUG);
return val1;
}
-int PokeGen::PokeMod::ItemEffect::GetVal2()
+int PokeGen::PokeMod::ItemEffect::GetVal2() const
{
PMLog("ItemEffect: Fetching val2", PM_DEBUG_DEBUG);
return val2;
}
-int PokeGen::PokeMod::ItemEffect::GetVal3()
+int PokeGen::PokeMod::ItemEffect::GetVal3() const
{
PMLog("ItemEffect: Fetching val3", PM_DEBUG_DEBUG);
return val3;
}
-PokeGen::PokeMod::PMString PokeGen::PokeMod::ItemEffect::GetVal3String()
+PokeGen::PokeMod::PMString PokeGen::PokeMod::ItemEffect::GetVal3String() const
{
PMLog("ItemEffect: Fetching val3", PM_DEBUG_DEBUG);
return val3;
}
-int PokeGen::PokeMod::ItemEffect::GetVal4()
+int PokeGen::PokeMod::ItemEffect::GetVal4() const
{
PMLog("ItemEffect: Fetching val4", PM_DEBUG_DEBUG);
return val4;
}
-PokeGen::PokeMod::PMString PokeGen::PokeMod::ItemEffect::GetVal4String()
+PokeGen::PokeMod::PMString PokeGen::PokeMod::ItemEffect::GetVal4String() const
{
PMLog("ItemEffect: Fetching val4", PM_DEBUG_DEBUG);
return val4;
}
-int PokeGen::PokeMod::ItemEffect::GetVal5()
+int PokeGen::PokeMod::ItemEffect::GetVal5() const
{
PMLog("ItemEffect: Fetching val5", PM_DEBUG_DEBUG);
return val5;
}
-PokeGen::PokeMod::PMString PokeGen::PokeMod::ItemEffect::GetVal5String()
+PokeGen::PokeMod::PMString PokeGen::PokeMod::ItemEffect::GetVal5String() const
{
PMLog("ItemEffect: Fetching val5", PM_DEBUG_DEBUG);
return val5;
|
