summaryrefslogtreecommitdiffstats
path: root/sigscript/ObjectWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/ObjectWrapper.cpp')
-rw-r--r--sigscript/ObjectWrapper.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/sigscript/ObjectWrapper.cpp b/sigscript/ObjectWrapper.cpp
index 2e36dec1..c7025078 100644
--- a/sigscript/ObjectWrapper.cpp
+++ b/sigscript/ObjectWrapper.cpp
@@ -25,37 +25,40 @@
#include <sigmod/Game.h>
#include <sigmod/Object.h>
-QMap<Sigscript::ObjectWrapper::Signature, Sigscript::ObjectWrapper*> Sigscript::ObjectWrapper::m_instances;
+using namespace Sigmod;
+using namespace Sigscript;
-Sigscript::ObjectWrapper::ObjectWrapper(const Sigmod::Object* object, ObjectWrapper* parent) :
+QMap<ObjectWrapper::Signature, ObjectWrapper*> ObjectWrapper::m_instances;
+
+ObjectWrapper::ObjectWrapper(const Object* object, ObjectWrapper* parent) :
Config(parent),
m_object(object)
{
}
-int Sigscript::ObjectWrapper::id() const
+int ObjectWrapper::id() const
{
return m_object->id();
}
-const Sigscript::ObjectWrapper* Sigscript::ObjectWrapper::parent() const
+const ObjectWrapper* ObjectWrapper::parent() const
{
return m_parent;
}
-Sigscript::ObjectWrapper* Sigscript::ObjectWrapper::parent()
+ObjectWrapper* ObjectWrapper::parent()
{
return m_parent;
}
-const Sigscript::GameWrapper* Sigscript::ObjectWrapper::game() const
+const GameWrapper* ObjectWrapper::game() const
{
if (m_parent)
return m_parent->game();
return qobject_cast<const GameWrapper*>(m_parent);
}
-Sigscript::GameWrapper* Sigscript::ObjectWrapper::game()
+GameWrapper* ObjectWrapper::game()
{
if (m_parent)
return m_parent->game();