Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10741 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 775 bytes
Line 
1/*!
2 * @file script_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   static ScriptManager*             singletonRef;   //!< Reference to this class
37};
38#endif
Note: See TracBrowser for help on using the repository browser.