summaryrefslogtreecommitdiffstats
path: root/sigscript/ObjectWrapper.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-02-24 16:18:17 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-02-24 16:18:17 -0500
commitb28b0cb3d52336f77b7ad8b313b3d6fd6b7d0e67 (patch)
tree01971661209ccb6d6844a096a5ea3d39baeabe68 /sigscript/ObjectWrapper.cpp
parentb6d07f0ca14256a42268e69190891c56bf978bd4 (diff)
downloadsigen-b28b0cb3d52336f77b7ad8b313b3d6fd6b7d0e67.tar.gz
sigen-b28b0cb3d52336f77b7ad8b313b3d6fd6b7d0e67.tar.xz
sigen-b28b0cb3d52336f77b7ad8b313b3d6fd6b7d0e67.zip
Moved SigmodWrapper to GameWrapper
Diffstat (limited to 'sigscript/ObjectWrapper.cpp')
-rw-r--r--sigscript/ObjectWrapper.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/sigscript/ObjectWrapper.cpp b/sigscript/ObjectWrapper.cpp
index fe656874..2e36dec1 100644
--- a/sigscript/ObjectWrapper.cpp
+++ b/sigscript/ObjectWrapper.cpp
@@ -19,11 +19,11 @@
#include "ObjectWrapper.h"
// Sigscript includes
-#include "SigmodWrapper.h"
+#include "GameWrapper.h"
// Sigmod includes
+#include <sigmod/Game.h>
#include <sigmod/Object.h>
-#include <sigmod/Sigmod.h>
QMap<Sigscript::ObjectWrapper::Signature, Sigscript::ObjectWrapper*> Sigscript::ObjectWrapper::m_instances;
@@ -48,16 +48,16 @@ Sigscript::ObjectWrapper* Sigscript::ObjectWrapper::parent()
return m_parent;
}
-const Sigscript::SigmodWrapper* Sigscript::ObjectWrapper::sigmod() const
+const Sigscript::GameWrapper* Sigscript::ObjectWrapper::game() const
{
if (m_parent)
- return m_parent->sigmod();
- return qobject_cast<const SigmodWrapper*>(m_parent);
+ return m_parent->game();
+ return qobject_cast<const GameWrapper*>(m_parent);
}
-Sigscript::SigmodWrapper* Sigscript::ObjectWrapper::sigmod()
+Sigscript::GameWrapper* Sigscript::ObjectWrapper::game()
{
if (m_parent)
- return m_parent->sigmod();
- return qobject_cast<SigmodWrapper*>(m_parent);
+ return m_parent->game();
+ return qobject_cast<GameWrapper*>(m_parent);
}