diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-08-22 12:44:56 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-08-22 13:11:38 +0200 |
commit | bfca89de4edded82668376d2388784defbee071b (patch) | |
tree | e345a9ec1e5d3e6419191cb3233efdfb70ab0718 /src/scripting/script.cpp | |
parent | 59b889008760325845aeb04b7ac3fad5e1068c0f (diff) | |
download | manaserv-bfca89de4edded82668376d2388784defbee071b.tar.gz manaserv-bfca89de4edded82668376d2388784defbee071b.tar.bz2 manaserv-bfca89de4edded82668376d2388784defbee071b.tar.xz manaserv-bfca89de4edded82668376d2388784defbee071b.zip |
Rename some stuff to conform to naming conventions
Diffstat (limited to 'src/scripting/script.cpp')
-rw-r--r-- | src/scripting/script.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/scripting/script.cpp b/src/scripting/script.cpp index 8aa450b8..3d16a7d1 100644 --- a/src/scripting/script.cpp +++ b/src/scripting/script.cpp @@ -32,8 +32,8 @@ typedef std::map< std::string, Script::Factory > Engines; static Engines *engines = NULL; -Script *Script::global_event_script = NULL; -Script *Script::special_actions_script = NULL; +Script *Script::globalEventScript = NULL; +Script *Script::specialActionsScript = NULL; Script::Script(): mMap(NULL), @@ -108,10 +108,10 @@ void Script::loadNPC(const std::string &name, int id, int x, int y, execute(); } -bool Script::execute_global_event_function(const std::string &function, Being* obj) +bool Script::executeGlobalEventFunction(const std::string &function, Being* obj) { bool isScriptHandled = false; - Script *script = Script::global_event_script; + Script *script = Script::globalEventScript; if (script) { script->setMap(obj->getMap()); @@ -134,7 +134,7 @@ void Script::addDataToSpecial(int id, Special* special) */ if (special) { - Script *script = Script::special_actions_script; + Script *script = Script::specialActionsScript; if (script) { script->prepare("get_special_recharge_cost"); @@ -146,9 +146,9 @@ void Script::addDataToSpecial(int id, Special* special) } -bool Script::perform_special_action(int specialId, Being* caster) +bool Script::performSpecialAction(int specialId, Being* caster) { - Script *script = Script::special_actions_script; + Script *script = Script::specialActionsScript; if (script) { script->prepare("use_special"); |