Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/bsp_model/src/lib/script_engine/script_manager.h @ 8538

Last change on this file since 8538 was 8271, checked in by bensch, 18 years ago

merge

File size: 961 bytes
Line 
1#ifndef _SCRIPT_MANAGER_H
2#define _SCRIPT_MANAGER_H
3
4#include <list>
5
6#include "base_object.h"
7#include "script.h"
8
9
10class ScriptTrigger;
11class Scriptable;
12
13class ScriptManager : public BaseObject
14{
15 public:
16   ScriptManager(const TiXmlElement* root = NULL);
17   ~ScriptManager();
18
19  /// LOADING
20  virtual void loadParams(const TiXmlElement* root);
21
22  /// QUERY PROCESS
23  Script* getScriptByFile(const std::string& file);
24
25  void  flush();                                   //!< Resets the script manager
26
27 private:
28   void  createScripts(const TiXmlElement* scripts);
29   void  createTriggers(const TiXmlElement* triggers);
30
31   bool getTriggers();
32   bool getScripts();
33
34   static ScriptManager*             singletonRef;   //!< Reference to this class
35
36   const std::list<BaseObject*>*     triggers;       //!< A list of all the triggers in the world
37
38   const std::list<BaseObject*>*     scripts;        //!< A list of all the scripts in the world
39
40
41};
42#endif
Note: See TracBrowser for help on using the repository browser.