Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/script_engine/script_manager.h @ 8778

Last change on this file since 8778 was 8711, checked in by bensch, 18 years ago

merged the script_engine back here

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