summaryrefslogtreecommitdiffstats
path: root/sigscript
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-19 18:50:23 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-19 18:50:23 -0400
commit3c0b6746f6984485217f0f3aa5b20c91e36949c4 (patch)
tree7f0d0c9d68cf24b49dcda6701079b2dd99b313d6 /sigscript
parenta065598f665f9344d7871779eba4d96bda3439f7 (diff)
downloadsigen-3c0b6746f6984485217f0f3aa5b20c91e36949c4.tar.gz
sigen-3c0b6746f6984485217f0f3aa5b20c91e36949c4.tar.xz
sigen-3c0b6746f6984485217f0f3aa5b20c91e36949c4.zip
MapWarp should have its type differences done with the script
Diffstat (limited to 'sigscript')
-rw-r--r--sigscript/MapWarpWrapper.cpp18
-rw-r--r--sigscript/MapWarpWrapper.h3
2 files changed, 0 insertions, 21 deletions
diff --git a/sigscript/MapWarpWrapper.cpp b/sigscript/MapWarpWrapper.cpp
index 44011c97..ef79e0fb 100644
--- a/sigscript/MapWarpWrapper.cpp
+++ b/sigscript/MapWarpWrapper.cpp
@@ -40,19 +40,6 @@ MapWarpWrapper::MapWarpWrapper(const MapWarp* warp, MapWrapper* parent) :
{
}
-MapWarp::Type MapWarpWrapper::type(const QString& name) const
-{
- if (name == "Door")
- return MapWarp::Door;
- else if (name == "Warp")
- return MapWarp::Warp;
- else if (name == "Hole")
- return MapWarp::Hole;
- else if (name == "Boundary")
- return MapWarp::Boundary;
- return QVariant(-1).value<MapWarp::Type>();
-}
-
QString MapWarpWrapper::name() const
{
return m_warp->name();
@@ -63,11 +50,6 @@ QPainterPath MapWarpWrapper::area() const
return m_warp->area();
}
-MapWarp::Type MapWarpWrapper::type() const
-{
- return m_warp->type();
-}
-
MapWarpWrapper* MapWarpWrapper::toWarp()
{
return game()->map(m_warp->toMap())->warp(m_warp->toWarp());
diff --git a/sigscript/MapWarpWrapper.h b/sigscript/MapWarpWrapper.h
index b239a884..26520cac 100644
--- a/sigscript/MapWarpWrapper.h
+++ b/sigscript/MapWarpWrapper.h
@@ -36,11 +36,8 @@ class SIGSCRIPT_EXPORT MapWarpWrapper : public ObjectWrapper
public:
static MapWarpWrapper* create(const Sigmod::MapWarp* warp, MapWrapper* parent);
- Q_SCRIPTABLE Sigmod::MapWarp::Type type(const QString& name) const;
-
Q_SCRIPTABLE QString name() const;
Q_SCRIPTABLE QPainterPath area() const;
- Q_SCRIPTABLE Sigmod::MapWarp::Type type() const;
Q_SCRIPTABLE MapWarpWrapper* toWarp();
Q_SCRIPTABLE Sigcore::Script script() const;
private: