summaryrefslogtreecommitdiffstats
path: root/pokemod/MapEffect.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-04-17 23:34:36 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-04-17 23:34:36 +0000
commit6679f5cffa9d35a23b76605ddfbf3257f882b6ee (patch)
treec8e41854a60b64e8569939bca6b827807175ef9a /pokemod/MapEffect.cpp
parent05980e883719b1c8ebde1bd2fcbf4f8c16df7ad6 (diff)
downloadsigen-6679f5cffa9d35a23b76605ddfbf3257f882b6ee.tar.gz
sigen-6679f5cffa9d35a23b76605ddfbf3257f882b6ee.tar.xz
sigen-6679f5cffa9d35a23b76605ddfbf3257f882b6ee.zip
[FIX] Frac -> Fraction
[FIX] ImageCache and Ini removed [FIX] Fraction/Point widgets moved to pokemodr [FIX] Copy ctors made for pokemod classes [FIX] Ctors in pokemod fixed [FIX] Copyright headers fixed in pokemodr [FIX] PokeModr updated to new API and fixed in some places git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@99 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/MapEffect.cpp')
-rw-r--r--pokemod/MapEffect.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp
index 57000542..f9f39a24 100644
--- a/pokemod/MapEffect.cpp
+++ b/pokemod/MapEffect.cpp
@@ -28,6 +28,12 @@
const QStringList MapEffect::MapEffectStr = QStringList() << "Item" << "PC" << "Strength Block" << "Button" << "Slot Machine" << "Card Flip Game";
const QStringList MapEffect::PCTypeStr = QStringList() << "Item" << "Pokémon" << "PokéDex" << "Hall of Fame" << "All";
+MapEffect::MapEffect(const MapEffect& effect) :
+ Object("MapEffect", effect.pokemod(), effect.id())
+{
+ *this = effect;
+}
+
MapEffect::MapEffect(const Pokemod* pokemod, const int id) :
Object("MapEffect", pokemod, id),
m_name(""),
@@ -44,13 +50,13 @@ MapEffect::MapEffect(const Pokemod* pokemod, const int id) :
{
}
-MapEffect::MapEffect(const Pokemod* pokemod, const MapEffect& effect, const int id) :
+MapEffect::MapEffect(const MapEffect& effect, const Pokemod* pokemod, const int id) :
Object("MapEffect", pokemod, id)
{
*this = effect;
}
-MapEffect::MapEffect(const Pokemod* pokemod, const QDomElement& xml, const int id) :
+MapEffect::MapEffect(const QDomElement& xml, const Pokemod* pokemod, const int id) :
Object("MapEffect", pokemod, id)
{
load(xml, id);