summaryrefslogtreecommitdiffstats
path: root/pokemod/ItemEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/ItemEffect.cpp')
-rw-r--r--pokemod/ItemEffect.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/pokemod/ItemEffect.cpp b/pokemod/ItemEffect.cpp
index 8c8a04f5..47ff017f 100644
--- a/pokemod/ItemEffect.cpp
+++ b/pokemod/ItemEffect.cpp
@@ -25,16 +25,16 @@
#include "MapWildList.h"
#include "ItemEffect.h"
-const QStringList PokeMod::ItemEffect::EffectStr = QStringList() << "HP Cure" << "Revive" << "Cure Status" << "Level Boost" << "Stat Boost" << "Flinch" << "Go First" << "Keep Alive" << "Modify Stat (Battle Only)" << "Shield (Battle Only)" << "Run (Battle Only)" << "PP Boost" << "Type Boost" << "PP Restore" << "Experience Share" << "Fishing Rod" << "Repel" << "Escape" << "TM" << "HM" << "Map" << "Ball" << "Itemfinder" << "Bike" << "Scope" << "Coin" << "Coin Case" << "Berry" << "Acorn";
-const QStringList PokeMod::ItemEffect::RelativeStr = QStringList() << "Absolute" << "Relative";
-const QStringList PokeMod::ItemEffect::EscapeStr = QStringList() << "Anywhere" << "Dungeon";
-const QStringList PokeMod::ItemEffect::RepelStr = QStringList() << "First" << "Max" << "All";
-const QStringList PokeMod::ItemEffect::AmountStr = QStringList() << "All" << "One";
-const QStringList PokeMod::ItemEffect::SpecialPhysicalStr = QStringList() << "Special" << "Physical";
-const QStringList PokeMod::ItemEffect::BallTypeStr = QStringList() << "Regular" << "Master" << "Level" << "Love" << "Area" << "Time" << "Battle" << "Friend" << "Stat" << "Type" << "Weight";
-const QStringList PokeMod::ItemEffect::BerryTypeStr = QStringList() << "HP Cure" << "Status Cure";
+const QStringList ItemEffect::EffectStr = QStringList() << "HP Cure" << "Revive" << "Cure Status" << "Level Boost" << "Stat Boost" << "Flinch" << "Go First" << "Keep Alive" << "Modify Stat (Battle Only)" << "Shield (Battle Only)" << "Run (Battle Only)" << "PP Boost" << "Type Boost" << "PP Restore" << "Experience Share" << "Fishing Rod" << "Repel" << "Escape" << "TM" << "HM" << "Map" << "Ball" << "Itemfinder" << "Bike" << "Scope" << "Coin" << "Coin Case" << "Berry" << "Acorn";
+const QStringList ItemEffect::RelativeStr = QStringList() << "Absolute" << "Relative";
+const QStringList ItemEffect::EscapeStr = QStringList() << "Anywhere" << "Dungeon";
+const QStringList ItemEffect::RepelStr = QStringList() << "First" << "Max" << "All";
+const QStringList ItemEffect::AmountStr = QStringList() << "All" << "One";
+const QStringList ItemEffect::SpecialPhysicalStr = QStringList() << "Special" << "Physical";
+const QStringList ItemEffect::BallTypeStr = QStringList() << "Regular" << "Master" << "Level" << "Love" << "Area" << "Time" << "Battle" << "Friend" << "Stat" << "Type" << "Weight";
+const QStringList ItemEffect::BerryTypeStr = QStringList() << "HP Cure" << "Status Cure";
-PokeMod::ItemEffect::ItemEffect(const Pokemod& par, const unsigned _id) :
+ItemEffect::ItemEffect(const Pokemod& par, const unsigned _id) :
Object(par, _id),
overworld(false),
battle(false),
@@ -47,19 +47,19 @@ PokeMod::ItemEffect::ItemEffect(const Pokemod& par, const unsigned _id) :
{
}
-PokeMod::ItemEffect::ItemEffect(const Pokemod& par, const ItemEffect& e, const unsigned _id) :
+ItemEffect::ItemEffect(const Pokemod& par, const ItemEffect& e, const unsigned _id) :
Object(par, _id)
{
*this = e;
}
-PokeMod::ItemEffect::ItemEffect(const Pokemod& par, const QString& fname, const unsigned _id) :
+ItemEffect::ItemEffect(const Pokemod& par, const QString& fname, const unsigned _id) :
Object(par, _id)
{
load(fname, _id);
}
-bool PokeMod::ItemEffect::validate() const
+bool ItemEffect::validate() const
{
bool valid = true;
pokemod.validationMsg(QString("------Effect with id %1---").arg(id), Pokemod::V_Msg);
@@ -298,7 +298,7 @@ bool PokeMod::ItemEffect::validate() const
return valid;
}
-void PokeMod::ItemEffect::load(const QString& fname, const unsigned _id) throw(Exception)
+void ItemEffect::load(const QString& fname, const unsigned _id) throw(Exception)
{
Ini ini(fname);
if (_id == UINT_MAX)
@@ -319,7 +319,7 @@ void PokeMod::ItemEffect::load(const QString& fname, const unsigned _id) throw(E
val4.set(i, j);
}
-void PokeMod::ItemEffect::save(const QString& item) const throw(Exception)
+void ItemEffect::save(const QString& item) const throw(Exception)
{
Ini ini;
ini.addField("id", id);
@@ -335,7 +335,7 @@ void PokeMod::ItemEffect::save(const QString& item) const throw(Exception)
ini.save(QString("%1/item/%2/effect/%3.pini").arg(pokemod.getPath()).arg(item).arg(id));
}
-void PokeMod::ItemEffect::setOverworld(const bool o) throw(Exception)
+void ItemEffect::setOverworld(const bool o) throw(Exception)
{
switch (effect)
{
@@ -376,17 +376,17 @@ void PokeMod::ItemEffect::setOverworld(const bool o) throw(Exception)
overworld = o;
}
-void PokeMod::ItemEffect::setBattle(const bool b)
+void ItemEffect::setBattle(const bool b)
{
battle = b;
}
-void PokeMod::ItemEffect::setHeld(const bool h)
+void ItemEffect::setHeld(const bool h)
{
held = h;
}
-void PokeMod::ItemEffect::setEffect(const unsigned e) throw(Exception)
+void ItemEffect::setEffect(const unsigned e) throw(Exception)
{
if (E_End <= e)
throw(BoundsException("ItemEffect", "effect out-of-bounds"));
@@ -433,7 +433,7 @@ void PokeMod::ItemEffect::setEffect(const unsigned e) throw(Exception)
val4.set(1, 1, ((e == E_TypeBoost) || (e == E_PPBoost)) ? Frac::Over1 : Frac::Proper);
}
-void PokeMod::ItemEffect::setVal1(const int v1) throw(Exception)
+void ItemEffect::setVal1(const int v1) throw(Exception)
{
switch (effect)
{
@@ -494,7 +494,7 @@ void PokeMod::ItemEffect::setVal1(const int v1) throw(Exception)
val1 = v1;
}
-void PokeMod::ItemEffect::setVal2(const unsigned v2) throw(Exception)
+void ItemEffect::setVal2(const unsigned v2) throw(Exception)
{
switch (effect)
{
@@ -566,7 +566,7 @@ void PokeMod::ItemEffect::setVal2(const unsigned v2) throw(Exception)
val2 = v2;
}
-void PokeMod::ItemEffect::setVal3(const unsigned v3) throw(Exception)
+void ItemEffect::setVal3(const unsigned v3) throw(Exception)
{
switch (effect)
{
@@ -628,7 +628,7 @@ void PokeMod::ItemEffect::setVal3(const unsigned v3) throw(Exception)
val3 = v3;
}
-void PokeMod::ItemEffect::setVal4(const unsigned n, const unsigned d) throw(Exception)
+void ItemEffect::setVal4(const unsigned n, const unsigned d) throw(Exception)
{
switch (effect)
{
@@ -661,7 +661,7 @@ void PokeMod::ItemEffect::setVal4(const unsigned n, const unsigned d) throw(Exce
val4.set(n, d);
}
-void PokeMod::ItemEffect::setVal4Num(const unsigned n) throw(Exception)
+void ItemEffect::setVal4Num(const unsigned n) throw(Exception)
{
switch (effect)
{
@@ -694,7 +694,7 @@ void PokeMod::ItemEffect::setVal4Num(const unsigned n) throw(Exception)
val4.setNum(n);
}
-void PokeMod::ItemEffect::setVal4Denom(const unsigned d) throw(Exception)
+void ItemEffect::setVal4Denom(const unsigned d) throw(Exception)
{
switch (effect)
{
@@ -727,47 +727,47 @@ void PokeMod::ItemEffect::setVal4Denom(const unsigned d) throw(Exception)
val4.setDenom(d);
}
-bool PokeMod::ItemEffect::getOverworld() const
+bool ItemEffect::getOverworld() const
{
return overworld;
}
-bool PokeMod::ItemEffect::getBattle() const
+bool ItemEffect::getBattle() const
{
return battle;
}
-bool PokeMod::ItemEffect::getHeld() const
+bool ItemEffect::getHeld() const
{
return held;
}
-unsigned PokeMod::ItemEffect::getEffect() const
+unsigned ItemEffect::getEffect() const
{
return effect;
}
-int PokeMod::ItemEffect::getVal1() const
+int ItemEffect::getVal1() const
{
return val1;
}
-unsigned PokeMod::ItemEffect::getVal2() const
+unsigned ItemEffect::getVal2() const
{
return val2;
}
-unsigned PokeMod::ItemEffect::getVal3() const
+unsigned ItemEffect::getVal3() const
{
return val3;
}
-Frac PokeMod::ItemEffect::getVal4() const
+Frac ItemEffect::getVal4() const
{
return val4;
}
-PokeMod::ItemEffect& PokeMod::ItemEffect::operator=(const ItemEffect& rhs)
+ItemEffect& ItemEffect::operator=(const ItemEffect& rhs)
{
if (this == &rhs)
return *this;