diff options
Diffstat (limited to 'src/scripting/script.h')
-rw-r--r-- | src/scripting/script.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scripting/script.h b/src/scripting/script.h index 574d1b9b..7cf457cc 100644 --- a/src/scripting/script.h +++ b/src/scripting/script.h @@ -31,7 +31,6 @@ #include <sigc++/trackable.h> -class Being; class MapComposite; class Entity; @@ -44,9 +43,13 @@ class Script : public sigc::trackable struct Context { MapComposite *map; + Entity *npc; + Entity *character; Context() : map(0) + , npc(0) + , character(0) {} }; @@ -238,7 +241,7 @@ class Script : public sigc::trackable const Context *getContext() const { return mContext; } - virtual void processDeathEvent(Being *entity) = 0; + virtual void processDeathEvent(Entity *entity) = 0; virtual void processRemoveEvent(Entity *entity) = 0; |