Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9468 was 8894, checked in by patrick, 18 years ago

merged the branche single_player_map with the trunk

File size: 1020 bytes
RevLine 
[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]15class ScriptTrigger;
16class Scriptable;
[8085]17
[8163]18class 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
[8202]36   bool getTriggers();
37   bool getScripts();
[8085]38
[8193]39   static ScriptManager*             singletonRef;   //!< Reference to this class
[8131]40
[8208]41   const std::list<BaseObject*>*     triggers;       //!< A list of all the triggers in the world
[8155]42
[8208]43   const std::list<BaseObject*>*     scripts;        //!< A list of all the scripts in the world
[8155]44
45
[8085]46};
47#endif
Note: See TracBrowser for help on using the repository browser.