diff options
Diffstat (limited to 'src/scripting/script.hpp')
-rw-r--r-- | src/scripting/script.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp index 5862e50c..8ab89c25 100644 --- a/src/scripting/script.hpp +++ b/src/scripting/script.hpp @@ -26,6 +26,7 @@ #include <string> +class MapComposite; class Thing; /** @@ -47,6 +48,8 @@ class Script */ static Script *create(std::string const &engine, std::string const &file); + Script(): mMap(NULL) {} + virtual ~Script() {} /** @@ -79,6 +82,21 @@ class Script * @return the value returned by the script. */ virtual int execute() = 0; + + /** + * Sets associated map. + */ + void setMap(MapComposite *m) + { mMap = m; } + + /** + * Gets associated map. + */ + MapComposite *getMap() const + { return mMap; } + + private: + MapComposite *mMap; }; #endif |