summaryrefslogtreecommitdiffstats
path: root/sigmod/MapWarp.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-09-06 04:12:30 +0000
commit0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch)
treea2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigmod/MapWarp.cpp
parentb81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff)
downloadsigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.gz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.xz
sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.zip
[FIX] Renamed everything (in use) away from Poké- prefixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigmod/MapWarp.cpp')
-rw-r--r--sigmod/MapWarp.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/sigmod/MapWarp.cpp b/sigmod/MapWarp.cpp
index cc922a33..9cd61065 100644
--- a/sigmod/MapWarp.cpp
+++ b/sigmod/MapWarp.cpp
@@ -18,20 +18,20 @@
// Header include
#include "MapWarp.h"
-// Pokemod includes
+// Sigmod includes
#include "Macros.h"
#include "Map.h"
-#include "Pokemod.h"
+#include "Sigmod.h"
-const QStringList Pokemod::MapWarp::TypeStr = QStringList() << "Door" << "Warp" << "Hole" << "Boundary";
+const QStringList Sigmod::MapWarp::TypeStr = QStringList() << "Door" << "Warp" << "Hole" << "Boundary";
-Pokemod::MapWarp::MapWarp(const MapWarp& warp) :
+Sigmod::MapWarp::MapWarp(const MapWarp& warp) :
Object(warp.parent(), warp.id())
{
*this = warp;
}
-Pokemod::MapWarp::MapWarp(const Map* parent, const int id) :
+Sigmod::MapWarp::MapWarp(const Map* parent, const int id) :
Object(parent, id),
m_name(""),
m_coordinate(0, 0),
@@ -42,20 +42,20 @@ Pokemod::MapWarp::MapWarp(const Map* parent, const int id) :
{
}
-Pokemod::MapWarp::MapWarp(const MapWarp& warp, const Map* parent, const int id) :
+Sigmod::MapWarp::MapWarp(const MapWarp& warp, const Map* parent, const int id) :
Object(parent, id)
{
*this = warp;
}
-Pokemod::MapWarp::MapWarp(const QDomElement& xml, const Map* parent, const int id) :
+Sigmod::MapWarp::MapWarp(const QDomElement& xml, const Map* parent, const int id) :
Object(parent, id)
{
LOAD_ID();
load(xml);
}
-void Pokemod::MapWarp::validate()
+void Sigmod::MapWarp::validate()
{
TEST_BEGIN();
if (m_name.isEmpty())
@@ -65,7 +65,7 @@ void Pokemod::MapWarp::validate()
TEST_END();
}
-void Pokemod::MapWarp::load(const QDomElement& xml)
+void Sigmod::MapWarp::load(const QDomElement& xml)
{
LOAD_BEGIN();
LOAD(name);
@@ -76,7 +76,7 @@ void Pokemod::MapWarp::load(const QDomElement& xml)
LOAD(script);
}
-QDomElement Pokemod::MapWarp::save() const
+QDomElement Sigmod::MapWarp::save() const
{
SAVE_CREATE();
SAVE(name);
@@ -88,12 +88,12 @@ QDomElement Pokemod::MapWarp::save() const
return xml;
}
-void Pokemod::MapWarp::setName(const QString& name)
+void Sigmod::MapWarp::setName(const QString& name)
{
CHECK(name);
}
-void Pokemod::MapWarp::setCoordinate(const QPoint& coordinate)
+void Sigmod::MapWarp::setCoordinate(const QPoint& coordinate)
{
if ((qobject_cast<const Map*>(parent())->width() <= coordinate.x()) || (qobject_cast<const Map*>(parent())->height() <= coordinate.y()))
emit(error(bounds("coordinate")));
@@ -101,65 +101,65 @@ void Pokemod::MapWarp::setCoordinate(const QPoint& coordinate)
CHECK(coordinate);
}
-void Pokemod::MapWarp::setType(const Type type)
+void Sigmod::MapWarp::setType(const Type type)
{
CHECK(type);
}
-void Pokemod::MapWarp::setToMap(const int toMap)
+void Sigmod::MapWarp::setToMap(const int toMap)
{
- if (qobject_cast<const Pokemod*>(pokemod())->mapIndex(toMap) == INT_MAX)
+ if (qobject_cast<const Sigmod*>(sigmod())->mapIndex(toMap) == INT_MAX)
emit(error(bounds("toMap")));
else
CHECK(toMap);
}
-void Pokemod::MapWarp::setToWarp(const int toWarp)
+void Sigmod::MapWarp::setToWarp(const int toWarp)
{
- if (qobject_cast<const Pokemod*>(pokemod())->mapIndex(m_toMap) == INT_MAX)
+ if (qobject_cast<const Sigmod*>(sigmod())->mapIndex(m_toMap) == INT_MAX)
emit(error(bounds("toMap")));
- else if (qobject_cast<const Pokemod*>(pokemod())->mapById(m_toMap)->warpIndex(toWarp) == INT_MAX)
+ else if (qobject_cast<const Sigmod*>(sigmod())->mapById(m_toMap)->warpIndex(toWarp) == INT_MAX)
emit(error(bounds("toWarp")));
else
CHECK(toWarp);
}
-void Pokemod::MapWarp::setScript(const Script& script)
+void Sigmod::MapWarp::setScript(const Script& script)
{
CHECK(script);
}
-QString Pokemod::MapWarp::name() const
+QString Sigmod::MapWarp::name() const
{
return m_name;
}
-QPoint Pokemod::MapWarp::coordinate() const
+QPoint Sigmod::MapWarp::coordinate() const
{
return m_coordinate;
}
-Pokemod::MapWarp::Type Pokemod::MapWarp::type() const
+Sigmod::MapWarp::Type Sigmod::MapWarp::type() const
{
return m_type;
}
-int Pokemod::MapWarp::toMap() const
+int Sigmod::MapWarp::toMap() const
{
return m_toMap;
}
-int Pokemod::MapWarp::toWarp() const
+int Sigmod::MapWarp::toWarp() const
{
return m_toWarp;
}
-Pokemod::Script Pokemod::MapWarp::script() const
+Sigmod::Script Sigmod::MapWarp::script() const
{
return m_script;
}
-Pokemod::MapWarp& Pokemod::MapWarp::operator=(const MapWarp& rhs)
+Sigmod::MapWarp& Sigmod::MapWarp::operator=(const MapWarp& rhs)
{
if (this == &rhs)
return *this;