From 26d8eba0ad906cd9b4a95bbd94fc1556719fd5d2 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Fri, 9 Jul 2010 15:21:50 +0200 Subject: Added LUA script bindings for manipulating the specials available to a character. Added script call for getting the cost of a special (recharge only for now) Deleting specials works server-sided but the client isn't informed about it properly. Specials without recharge cost don't appear for the player. Both of these features require an additional netcode message. Reviewed-by: Freeyorp --- src/scripting/script.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/scripting/script.hpp') diff --git a/src/scripting/script.hpp b/src/scripting/script.hpp index 96df085..0e87415 100644 --- a/src/scripting/script.hpp +++ b/src/scripting/script.hpp @@ -23,6 +23,7 @@ #include +#include "game-server/character.hpp" #include "game-server/eventlistener.hpp" class MapComposite; @@ -135,11 +136,13 @@ class Script * Runs a function from the global event script file */ static bool execute_global_event_function(const std::string &function, Being *obj); - + static void addDataToSpecial(int specialId, Special *special); + static bool perform_special_action(int specialId, Being *caster); protected: static Script* global_event_script; // the global event script + static Script* special_actions_script; // the special actions script std::string mScriptFile; private: -- cgit