summaryrefslogtreecommitdiffstats
path: root/sigmod/MapEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmod/MapEffect.cpp')
-rw-r--r--sigmod/MapEffect.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/sigmod/MapEffect.cpp b/sigmod/MapEffect.cpp
index 558596f5..3c232118 100644
--- a/sigmod/MapEffect.cpp
+++ b/sigmod/MapEffect.cpp
@@ -18,18 +18,18 @@
// Header include
#include "MapEffect.h"
-// Pokemod includes
+// Sigmod includes
#include "Macros.h"
#include "Map.h"
-#include "Pokemod.h"
+#include "Sigmod.h"
-Pokemod::MapEffect::MapEffect(const MapEffect& effect) :
+Sigmod::MapEffect::MapEffect(const MapEffect& effect) :
Object(effect.parent(), effect.id())
{
*this = effect;
}
-Pokemod::MapEffect::MapEffect(const Map* parent, const int id) :
+Sigmod::MapEffect::MapEffect(const Map* parent, const int id) :
Object(parent, id),
m_name(""),
m_coordinate(0, 0),
@@ -39,20 +39,20 @@ Pokemod::MapEffect::MapEffect(const Map* parent, const int id) :
{
}
-Pokemod::MapEffect::MapEffect(const MapEffect& effect, const Map* parent, const int id) :
+Sigmod::MapEffect::MapEffect(const MapEffect& effect, const Map* parent, const int id) :
Object(parent, id)
{
*this = effect;
}
-Pokemod::MapEffect::MapEffect(const QDomElement& xml, const Map* parent, const int id) :
+Sigmod::MapEffect::MapEffect(const QDomElement& xml, const Map* parent, const int id) :
Object(parent, id)
{
LOAD_ID();
load(xml);
}
-void Pokemod::MapEffect::validate()
+void Sigmod::MapEffect::validate()
{
TEST_BEGIN();
if (m_name.isEmpty())
@@ -62,7 +62,7 @@ void Pokemod::MapEffect::validate()
TEST_END();
}
-void Pokemod::MapEffect::load(const QDomElement& xml)
+void Sigmod::MapEffect::load(const QDomElement& xml)
{
LOAD_BEGIN();
LOAD(name);
@@ -72,7 +72,7 @@ void Pokemod::MapEffect::load(const QDomElement& xml)
LOAD(script);
}
-QDomElement Pokemod::MapEffect::save() const
+QDomElement Sigmod::MapEffect::save() const
{
SAVE_CREATE();
SAVE(name);
@@ -83,12 +83,12 @@ QDomElement Pokemod::MapEffect::save() const
return xml;
}
-void Pokemod::MapEffect::setName(const QString& name)
+void Sigmod::MapEffect::setName(const QString& name)
{
CHECK(name);
}
-void Pokemod::MapEffect::setCoordinate(const QPoint& coordinate)
+void Sigmod::MapEffect::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")));
@@ -96,50 +96,50 @@ void Pokemod::MapEffect::setCoordinate(const QPoint& coordinate)
CHECK(coordinate);
}
-void Pokemod::MapEffect::setSkin(const int skin)
+void Sigmod::MapEffect::setSkin(const int skin)
{
- if (qobject_cast<const Pokemod*>(pokemod())->skinIndex(skin) == INT_MAX)
+ if (qobject_cast<const Sigmod*>(sigmod())->skinIndex(skin) == INT_MAX)
emit(error(bounds("skin")));
else
CHECK(skin);
}
-void Pokemod::MapEffect::setIsGhost(const bool isGhost)
+void Sigmod::MapEffect::setIsGhost(const bool isGhost)
{
CHECK(isGhost);
}
-void Pokemod::MapEffect::setScript(const Script& script)
+void Sigmod::MapEffect::setScript(const Script& script)
{
CHECK(script);
}
-QString Pokemod::MapEffect::name() const
+QString Sigmod::MapEffect::name() const
{
return m_name;
}
-QPoint Pokemod::MapEffect::coordinate() const
+QPoint Sigmod::MapEffect::coordinate() const
{
return m_coordinate;
}
-int Pokemod::MapEffect::skin() const
+int Sigmod::MapEffect::skin() const
{
return m_skin;
}
-bool Pokemod::MapEffect::isGhost() const
+bool Sigmod::MapEffect::isGhost() const
{
return m_isGhost;
}
-Pokemod::Script Pokemod::MapEffect::script() const
+Sigmod::Script Sigmod::MapEffect::script() const
{
return m_script;
}
-Pokemod::MapEffect& Pokemod::MapEffect::operator=(const MapEffect& rhs)
+Sigmod::MapEffect& Sigmod::MapEffect::operator=(const MapEffect& rhs)
{
if (this == &rhs)
return *this;