Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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