diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-05-19 15:07:45 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-05-19 15:07:45 +0000 |
commit | 502d5c892c92b4a71eceae1d275032100d42dd23 (patch) | |
tree | 81f29c3ce0bda3d2a4221a485c9695d4e56eb568 /src/scripting/script.hpp | |
parent | 4b4b6d0865f5f04f73e04926fb9e6b610f0a71a7 (diff) | |
download | manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.gz manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.bz2 manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.xz manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.zip |
Implemented NPC names. Implemented the theoretical possibility to have named monsters along the way. Note that the syntax of the LUA functions for creating NPCs has changed.
Diffstat (limited to 'src/scripting/script.hpp')
-rw-r--r-- | src/scripting/script.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp index 963c51f2..6a101edf 100644 --- a/src/scripting/script.hpp +++ b/src/scripting/script.hpp @@ -74,7 +74,7 @@ class Script * Loads a chunk of text and considers it as an NPC handler. This * handler will later be used to create the given NPC. */ - virtual void loadNPC(int id, int x, int y, char const *); + virtual void loadNPC(std::string const &name, int id, int x, int y, char const *); /** * Called every tick for the script to manage its data. @@ -94,6 +94,11 @@ class Script virtual void push(int) = 0; /** + * Pushes a string argument for the function being prepared. + */ + virtual void push(std::string const &) = 0; + + /** * Pushes a pointer argument to a game entity. * The interface can pass the pointer as an opaque value to the * scripting engine, if needed. This value will usually be passed |