diff options
Diffstat (limited to 'pokemod/MapEffect.cpp')
| -rw-r--r-- | pokemod/MapEffect.cpp | 10 |
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); |
