Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8138 in orxonox.OLD


Ignore:
Timestamp:
Jun 3, 2006, 8:09:14 PM (18 years ago)
Author:
snellen
Message:

Continued working on script manager

Location:
branches/script_engine/src/lib/script_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/script_manager.cc

    r8135 r8138  
    1717
    1818}
     19
     20ScriptManager* ScriptManager::getInstance()
     21{
     22
     23  if (!ScriptManager::singletonRef)
     24    ScriptManager::singletonRef = new ScriptManager();
     25  return ScriptManager::singletonRef;
     26
     27}
     28
    1929
    2030//!< Fills the worldObject list
  • branches/script_engine/src/lib/script_engine/script_manager.h

    r8137 r8138  
    2424   ~ScriptManager();
    2525
     26   inline static ScriptManager* getInstance();
     27
    2628  void loadParams(const TiXmlElement* root);
    2729
     
    3436
    3537 private:
     38
    3639   void  init(std::string& world);
    3740
     41   static ScriptManager*      singletonRef; //!< Reference to this class
    3842   std::list<scriptableObject> objectList; //!< The list of all Objects in a world (read from the *.oxw file of the world)
    3943   std::string currentWorld;
Note: See TracChangeset for help on using the changeset viewer.