/*! * @file scrip_manager.h * manages the scripts */ #ifndef _SCRIPT_MANAGER_H #define _SCRIPT_MANAGER_H #include #include "base_object.h" #include "script.h" class ScriptTrigger; class Scriptable; class ScriptManager : public BaseObject { public: ScriptManager(const TiXmlElement* root = NULL); ~ScriptManager(); /// LOADING virtual void loadParams(const TiXmlElement* root); /// QUERY PROCESS Script* getScriptByFile(const std::string& file); void flush(); //!< Resets the script manager private: void createScripts(const TiXmlElement* scripts); void createTriggers(const TiXmlElement* triggers); bool getTriggers(); bool getScripts(); static ScriptManager* singletonRef; //!< Reference to this class const std::list* triggers; //!< A list of all the triggers in the world const std::list* scripts; //!< A list of all the scripts in the world }; #endif