diff options
Diffstat (limited to 'sigscript/MapWrapper.cpp')
| -rw-r--r-- | sigscript/MapWrapper.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/sigscript/MapWrapper.cpp b/sigscript/MapWrapper.cpp index ebd37ceb..279e0b58 100644 --- a/sigscript/MapWrapper.cpp +++ b/sigscript/MapWrapper.cpp @@ -18,83 +18,83 @@ // Header include #include "MapWrapper.h" -// Pokescripting includes +// Sigscript includes #include "MapEffectWrapper.h" #include "MapTrainerWrapper.h" #include "MapWarpWrapper.h" #include "MapWildListWrapper.h" -#include "PokemodWrapper.h" +#include "SigmodWrapper.h" -Pokescripting::MapWrapper* Pokescripting::MapWrapper::create(const Pokemod::Map* map, PokemodWrapper* parent) +Sigscript::MapWrapper* Sigscript::MapWrapper::create(const Sigmod::Map* map, SigmodWrapper* parent) { if (!m_instances.contains(Signiture(parent, map->id()))) m_instances[Signiture(parent, map->id())] = new MapWrapper(map, parent); return qobject_cast<MapWrapper*>(m_instances[Signiture(parent, map->id())]); } -Pokescripting::MapWrapper::MapWrapper(const Pokemod::Map* map, PokemodWrapper* parent) : +Sigscript::MapWrapper::MapWrapper(const Sigmod::Map* map, SigmodWrapper* parent) : ObjectWrapper(map, parent), m_map(map) { } -Pokescripting::MapEffectWrapper* Pokescripting::MapWrapper::effect(const int id) +Sigscript::MapEffectWrapper* Sigscript::MapWrapper::effect(const int id) { return MapEffectWrapper::create(m_map->effectById(id), this); } -Pokescripting::MapTrainerWrapper* Pokescripting::MapWrapper::trainer(const int id) +Sigscript::MapTrainerWrapper* Sigscript::MapWrapper::trainer(const int id) { return MapTrainerWrapper::create(m_map->trainerById(id), this); } -Pokescripting::MapWarpWrapper* Pokescripting::MapWrapper::warp(const int id) +Sigscript::MapWarpWrapper* Sigscript::MapWrapper::warp(const int id) { return MapWarpWrapper::create(m_map->warpById(id), this); } -Pokescripting::MapWildListWrapper* Pokescripting::MapWrapper::wildList(const int id) +Sigscript::MapWildListWrapper* Sigscript::MapWrapper::wildList(const int id) { return MapWildListWrapper::create(m_map->wildListById(id), this); } -Pokemod::Map::Type Pokescripting::MapWrapper::type(const QString& name) const +Sigmod::Map::Type Sigscript::MapWrapper::type(const QString& name) const { if (name == "Outdoor") - return Pokemod::Map::Outdoor; + return Sigmod::Map::Outdoor; else if (name == "Dungeon") - return Pokemod::Map::Dungeon; + return Sigmod::Map::Dungeon; else if (name == "Building") - return Pokemod::Map::Building; - return QVariant(-1).value<Pokemod::Map::Type>(); + return Sigmod::Map::Building; + return QVariant(-1).value<Sigmod::Map::Type>(); } -QString Pokescripting::MapWrapper::name() const +QString Sigscript::MapWrapper::name() const { return m_map->name(); } -Pokescripting::MapWarpWrapper* Pokescripting::MapWrapper::flyWarp() +Sigscript::MapWarpWrapper* Sigscript::MapWrapper::flyWarp() { return MapWarpWrapper::create(m_map->warpById(m_map->flyWarp()), this); } -Pokemod::Map::Type Pokescripting::MapWrapper::type() const +Sigmod::Map::Type Sigscript::MapWrapper::type() const { return m_map->type(); } -Pokescripting::TileWrapper* Pokescripting::MapWrapper::tile(const int row, const int column) +Sigscript::TileWrapper* Sigscript::MapWrapper::tile(const int row, const int column) { - return pokemod()->tile(m_map->tile(row, column)); + return sigmod()->tile(m_map->tile(row, column)); } -QPoint Pokescripting::MapWrapper::mapSize() const +QPoint Sigscript::MapWrapper::mapSize() const { return m_map->size(); } -Pokescripting::MapEffectWrapper* Pokescripting::MapWrapper::effect(const QString& name) +Sigscript::MapEffectWrapper* Sigscript::MapWrapper::effect(const QString& name) { for (int i = 0; i < m_map->effectCount(); ++i) { @@ -104,7 +104,7 @@ Pokescripting::MapEffectWrapper* Pokescripting::MapWrapper::effect(const QString return NULL; } -Pokescripting::MapTrainerWrapper* Pokescripting::MapWrapper::trainer(const QString& name) +Sigscript::MapTrainerWrapper* Sigscript::MapWrapper::trainer(const QString& name) { for (int i = 0; i < m_map->trainerCount(); ++i) { @@ -114,7 +114,7 @@ Pokescripting::MapTrainerWrapper* Pokescripting::MapWrapper::trainer(const QStri return NULL; } -Pokescripting::MapWarpWrapper* Pokescripting::MapWrapper::warp(const QString& name) +Sigscript::MapWarpWrapper* Sigscript::MapWrapper::warp(const QString& name) { for (int i = 0; i < m_map->warpCount(); ++i) { @@ -124,7 +124,7 @@ Pokescripting::MapWarpWrapper* Pokescripting::MapWrapper::warp(const QString& na return NULL; } -Pokescripting::MapWildListWrapper* Pokescripting::MapWrapper::wildList(const QString& name) +Sigscript::MapWildListWrapper* Sigscript::MapWrapper::wildList(const QString& name) { for (int i = 0; i < m_map->wildListCount(); ++i) { |
