diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-04-01 02:15:35 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-04-01 02:15:35 -0400 |
| commit | ea97b53e8e934f54a646f52eff94fea5316160f2 (patch) | |
| tree | 856b841fa23182d0c5a7eb8f20a72144b7860f8b /sigscript/GameWrapper.h | |
| parent | 11fb74db1d0095e9f61d4c6106182f48310babb7 (diff) | |
| download | sigen-ea97b53e8e934f54a646f52eff94fea5316160f2.tar.gz sigen-ea97b53e8e934f54a646f52eff94fea5316160f2.tar.xz sigen-ea97b53e8e934f54a646f52eff94fea5316160f2.zip | |
Add mapPosition storage to Game
Diffstat (limited to 'sigscript/GameWrapper.h')
| -rw-r--r-- | sigscript/GameWrapper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sigscript/GameWrapper.h b/sigscript/GameWrapper.h index 179d77f8..efff7de3 100644 --- a/sigscript/GameWrapper.h +++ b/sigscript/GameWrapper.h @@ -29,6 +29,9 @@ #include <sigmod/Direction.h> #include <sigmod/Stat.h> +// Qt includes +#include <QtCore/QPoint> + // Forward declarations namespace Sigmod { @@ -103,6 +106,7 @@ class SIGSCRIPT_EXPORT GameWrapper : public ObjectWrapper Q_SCRIPTABLE bool singlePlayer() const; Q_SCRIPTABLE Sigcore::Script startScript(); Q_SCRIPTABLE Sigcore::Fraction effectiveness(const TypeWrapper* attacker, const TypeWrapper* defender) const; + Q_SCRIPTABLE QPoint mapPosition(const MapWrapper* map) const; Q_SCRIPTABLE RulesWrapper* rules(); Q_SCRIPTABLE AbilityWrapper* ability(const QString& name); |
