source:
orxonox.OLD/trunk/src/lib/script_engine/script_manager.h
@
10766
Last change on this file since 10766 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 775 bytes |
Rev | Line | |
---|---|---|
[8711] | 1 | /*! |
[8894] | 2 | * @file script_manager.h |
[8711] | 3 | * manages the scripts |
4 | */ | |
5 | ||
[8085] | 6 | #ifndef _SCRIPT_MANAGER_H |
[8170] | 7 | #define _SCRIPT_MANAGER_H |
[8085] | 8 | |
[8131] | 9 | #include <list> |
[8093] | 10 | |
[8202] | 11 | #include "base_object.h" |
[8131] | 12 | #include "script.h" |
[8085] | 13 | |
14 | ||
[8193] | 15 | class ScriptTrigger; |
16 | class Scriptable; | |
[8085] | 17 | |
[8163] | 18 | class ScriptManager : public BaseObject |
[8085] | 19 | { |
20 | public: | |
[8239] | 21 | ScriptManager(const TiXmlElement* root = NULL); |
[8136] | 22 | ~ScriptManager(); |
[8085] | 23 | |
[8208] | 24 | /// LOADING |
[8155] | 25 | virtual void loadParams(const TiXmlElement* root); |
[8212] | 26 | |
[8240] | 27 | /// QUERY PROCESS |
[8212] | 28 | Script* getScriptByFile(const std::string& file); |
[8131] | 29 | |
[8240] | 30 | void flush(); //!< Resets the script manager |
[8212] | 31 | |
[8085] | 32 | private: |
[8202] | 33 | void createScripts(const TiXmlElement* scripts); |
34 | void createTriggers(const TiXmlElement* triggers); | |
[8212] | 35 | |
[8193] | 36 | static ScriptManager* singletonRef; //!< Reference to this class |
[8085] | 37 | }; |
38 | #endif |
Note: See TracBrowser
for help on using the repository browser.