summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-28 22:03:56 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-28 22:03:56 -0400
commit327d403983184d90a3b25820bf112dd12c732814 (patch)
tree2a5fd400c744ab1e9e5ceda3650ac623993c1f77
parent3fb49947b429e5f6dd7e6e0684d9b545d9442917 (diff)
downloadsigen-327d403983184d90a3b25820bf112dd12c732814.tar.gz
sigen-327d403983184d90a3b25820bf112dd12c732814.tar.xz
sigen-327d403983184d90a3b25820bf112dd12c732814.zip
Add world flag to MapWrapper
-rw-r--r--sigscript/MapWrapper.cpp5
-rw-r--r--sigscript/MapWrapper.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/sigscript/MapWrapper.cpp b/sigscript/MapWrapper.cpp
index beca24cb..a4d39586 100644
--- a/sigscript/MapWrapper.cpp
+++ b/sigscript/MapWrapper.cpp
@@ -88,6 +88,11 @@ int MapWrapper::height() const
return m_map->height();
}
+bool MapWrapper::isWorld() const
+{
+ return m_map->isWorld();
+}
+
MapEffectWrapper* MapWrapper::effect(const QString& name)
{
for (int i = 0; i < m_map->effectCount(); ++i)
diff --git a/sigscript/MapWrapper.h b/sigscript/MapWrapper.h
index fb3fe38f..a370c4e5 100644
--- a/sigscript/MapWrapper.h
+++ b/sigscript/MapWrapper.h
@@ -50,6 +50,7 @@ class SIGSCRIPT_EXPORT MapWrapper : public ObjectWrapper
Q_SCRIPTABLE QString name() const;
Q_SCRIPTABLE int width() const;
Q_SCRIPTABLE int height() const;
+ Q_SCRIPTABLE bool isWorld() const;
Q_SCRIPTABLE MapEffectWrapper* effect(const QString& name);
Q_SCRIPTABLE QList<MapTileWrapper*> tiles();