summaryrefslogtreecommitdiff
path: root/src/scripting/scriptmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting/scriptmanager.cpp')
-rw-r--r--src/scripting/scriptmanager.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/scripting/scriptmanager.cpp b/src/scripting/scriptmanager.cpp
index c133a5e2..76c4dae9 100644
--- a/src/scripting/scriptmanager.cpp
+++ b/src/scripting/scriptmanager.cpp
@@ -51,39 +51,6 @@ Script *ScriptManager::currentState()
return _currentState;
}
-// TODO: Have some generic event mechanism rather than calling global functions
-
-void ScriptManager::addDataToSpecial(int id, Special *special)
-{
- /* currently only gets the recharge cost.
- TODO: get any other info in a similar way, but
- first we have to agree on what other
- info we actually want to provide.
- */
- if (special && _getSpecialRechargeCostCallback.isValid())
- {
- _currentState->prepare(_getSpecialRechargeCostCallback);
- _currentState->push(id);
- int scriptReturn = _currentState->execute();
- special->neededMana = scriptReturn;
- }
-}
-
-bool ScriptManager::performSpecialAction(int specialId, Being *caster)
-{
- if (!_specialCallback.isValid())
- {
- LOG_WARN("No callback for specials set! Specials disabled.");
- return false;
- }
-
- _currentState->prepare(_specialCallback);
- _currentState->push(caster);
- _currentState->push(specialId);
- _currentState->execute();
- return true;
-}
-
bool ScriptManager::performCraft(Being *crafter,
const std::list<InventoryItem> &recipe)
{