diff options
Diffstat (limited to 'sigscript/MapWarpWrapper.cpp')
| -rw-r--r-- | sigscript/MapWarpWrapper.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sigscript/MapWarpWrapper.cpp b/sigscript/MapWarpWrapper.cpp index 370ad6f5..fe6bdd42 100644 --- a/sigscript/MapWarpWrapper.cpp +++ b/sigscript/MapWarpWrapper.cpp @@ -18,59 +18,59 @@ // Header include #include "MapWarpWrapper.h" -// Pokescripting includes +// Sigscript includes #include "MapWrapper.h" -#include "PokemodWrapper.h" +#include "SigmodWrapper.h" -Pokescripting::MapWarpWrapper* Pokescripting::MapWarpWrapper::create(const Pokemod::MapWarp* warp, MapWrapper* parent) +Sigscript::MapWarpWrapper* Sigscript::MapWarpWrapper::create(const Sigmod::MapWarp* warp, MapWrapper* parent) { if (!m_instances.contains(Signiture(parent, warp->id()))) m_instances[Signiture(parent, warp->id())] = new MapWarpWrapper(warp, parent); return qobject_cast<MapWarpWrapper*>(m_instances[Signiture(parent, warp->id())]); } -Pokescripting::MapWarpWrapper::MapWarpWrapper(const Pokemod::MapWarp* warp, MapWrapper* parent) : +Sigscript::MapWarpWrapper::MapWarpWrapper(const Sigmod::MapWarp* warp, MapWrapper* parent) : ObjectWrapper(warp, parent), m_warp(warp) { } -Pokemod::MapWarp::Type Pokescripting::MapWarpWrapper::type(const QString& name) const +Sigmod::MapWarp::Type Sigscript::MapWarpWrapper::type(const QString& name) const { if (name == "Door") - return Pokemod::MapWarp::Door; + return Sigmod::MapWarp::Door; else if (name == "Warp") - return Pokemod::MapWarp::Warp; + return Sigmod::MapWarp::Warp; else if (name == "Hole") - return Pokemod::MapWarp::Hole; + return Sigmod::MapWarp::Hole; else if (name == "Boundary") - return Pokemod::MapWarp::Boundary; - return QVariant(-1).value<Pokemod::MapWarp::Type>(); + return Sigmod::MapWarp::Boundary; + return QVariant(-1).value<Sigmod::MapWarp::Type>(); } -QString Pokescripting::MapWarpWrapper::name() const +QString Sigscript::MapWarpWrapper::name() const { return m_warp->name(); } -QPoint Pokescripting::MapWarpWrapper::coordinate() const +QPoint Sigscript::MapWarpWrapper::coordinate() const { if (value("coordinate").canConvert<QPoint>()) return value("coordinate").toPoint(); return m_warp->coordinate(); } -Pokemod::MapWarp::Type Pokescripting::MapWarpWrapper::type() const +Sigmod::MapWarp::Type Sigscript::MapWarpWrapper::type() const { return m_warp->type(); } -Pokescripting::MapWarpWrapper* Pokescripting::MapWarpWrapper::toWarp() +Sigscript::MapWarpWrapper* Sigscript::MapWarpWrapper::toWarp() { - return pokemod()->map(m_warp->toMap())->warp(m_warp->toWarp()); + return sigmod()->map(m_warp->toMap())->warp(m_warp->toWarp()); } -Pokemod::Script Pokescripting::MapWarpWrapper::script() const +Sigmod::Script Sigscript::MapWarpWrapper::script() const { return m_warp->script(); } |
