summaryrefslogtreecommitdiff
path: root/src/scripting/script.hpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:05:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:18:21 +0200
commit43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch)
tree4aba689b76138118b4da043425fb3e8576db418c /src/scripting/script.hpp
parente726c34606f85347e70a0deb6b180db03b6d0c25 (diff)
downloadmanaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.bz2
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/scripting/script.hpp')
-rw-r--r--src/scripting/script.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp
index 24a415ef..1674e483 100644
--- a/src/scripting/script.hpp
+++ b/src/scripting/script.hpp
@@ -41,12 +41,12 @@ class Script
/**
* Registers a new scripting engine.
*/
- static void registerEngine(std::string const &, Factory);
+ static void registerEngine(const std::string &, Factory);
/**
* Creates a new script context for a given engine.
*/
- static Script *create(std::string const &engine);
+ static Script *create(const std::string &engine);
/**
* Constructor.
@@ -62,19 +62,20 @@ class Script
* Loads a chunk of text into script context and executes its global
* statements.
*/
- virtual void load(char const *) = 0;
+ virtual void load(const char *) = 0;
/**
* Loads a text file into script context and executes its global
* statements.
*/
- virtual bool loadFile(std::string const &);
+ virtual bool loadFile(const std::string &);
/**
* 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(std::string const &name, int id, int x, int y, char const *);
+ virtual void loadNPC(const std::string &name, int id, int x, int y,
+ const char *);
/**
* Called every tick for the script to manage its data.
@@ -86,7 +87,7 @@ class Script
* Prepares a call to the given function.
* Only one function can be prepared at once.
*/
- virtual void prepare(std::string const &name) = 0;
+ virtual void prepare(const std::string &name) = 0;
/**
* Pushes an integer argument for the function being prepared.
@@ -96,7 +97,7 @@ class Script
/**
* Pushes a string argument for the function being prepared.
*/
- virtual void push(std::string const &) = 0;
+ virtual void push(const std::string &) = 0;
/**
* Pushes a pointer argument to a game entity.