diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 16:18:34 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-24 16:18:34 -0500 |
| commit | eb7d51f42aa1790be6b496a0e1882d6a9646e1c8 (patch) | |
| tree | 27e248b80f7e842c825ea65362c37b8c9f09322d /sigscript/GameWrapper.h | |
| parent | b28b0cb3d52336f77b7ad8b313b3d6fd6b7d0e67 (diff) | |
| download | sigen-eb7d51f42aa1790be6b496a0e1882d6a9646e1c8.tar.gz sigen-eb7d51f42aa1790be6b496a0e1882d6a9646e1c8.tar.xz sigen-eb7d51f42aa1790be6b496a0e1882d6a9646e1c8.zip | |
Fixed internals of GameWrapper
Diffstat (limited to 'sigscript/GameWrapper.h')
| -rw-r--r-- | sigscript/GameWrapper.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sigscript/GameWrapper.h b/sigscript/GameWrapper.h index 48515286..179d77f8 100644 --- a/sigscript/GameWrapper.h +++ b/sigscript/GameWrapper.h @@ -15,8 +15,8 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef SIGSCRIPT_SIGMODWRAPPER -#define SIGSCRIPT_SIGMODWRAPPER +#ifndef SIGSCRIPT_GAMEWRAPPER +#define SIGSCRIPT_GAMEWRAPPER // Sigscript includes #include "ObjectWrapper.h" @@ -32,7 +32,7 @@ // Forward declarations namespace Sigmod { -class Sigmod; +class Game; } namespace Sigscript @@ -62,12 +62,12 @@ class TrainerWrapper; class TypeWrapper; class WeatherWrapper; -class SIGSCRIPT_EXPORT SigmodWrapper : public ObjectWrapper +class SIGSCRIPT_EXPORT GameWrapper : public ObjectWrapper { Q_OBJECT public: - SigmodWrapper(const Sigmod::Sigmod* sigmod); + GameWrapper(const Sigmod::Game* game); Sigcore::Hat<NatureWrapper*> natureHat(); @@ -128,11 +128,11 @@ class SIGSCRIPT_EXPORT SigmodWrapper : public ObjectWrapper Q_SCRIPTABLE TypeWrapper* type(const QString& name); Q_SCRIPTABLE WeatherWrapper* weather(const QString& name); private: - SigmodWrapper& operator=(const SigmodWrapper& rhs); + GameWrapper& operator=(const GameWrapper& rhs); - const Sigmod::Sigmod* m_sigmod; + const Sigmod::Game* m_game; }; } -Q_DECLARE_METATYPE(Sigscript::SigmodWrapper*) +Q_DECLARE_METATYPE(Sigscript::GameWrapper*) #endif |
