Changeset 8163 in orxonox.OLD for branches/script_engine
- Timestamp:
- Jun 5, 2006, 7:23:05 PM (18 years ago)
- 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
r8159 r8163 98 98 } 99 99 100 void ScriptManager::setCurrentScriptFile( std::string& file)100 void ScriptManager::setCurrentScriptFile(const std::string& file) 101 101 { 102 102 if( !fileIsInScriptList(file) ) … … 106 106 } 107 107 108 void ScriptManager::addObjectToScript( std::string object, LuaScript& script)108 void ScriptManager::addObjectToScript(const std::string object, LuaScript& script) 109 109 { 110 110 if(!objectIsInObjectList(object,script)) … … 113 113 114 114 115 bool ScriptManager::fileIsInScriptList( std::string& file)115 bool ScriptManager::fileIsInScriptList(const std::string& file) 116 116 { 117 117 for(std::list<LuaScript>::const_iterator it = scriptList.begin(); it != scriptList.end(); it++ ) … … 126 126 127 127 128 bool ScriptManager::objectIsInObjectList( std::string& object, const LuaScript& script)128 bool ScriptManager::objectIsInObjectList(const std::string& object, const LuaScript& script) 129 129 { 130 130 for(std::list<std::string>::const_iterator it = script.objectList.begin(); it != script.objectList.end(); it++ ) -
branches/script_engine/src/lib/script_engine/script_manager.h
r8160 r8163 19 19 }; 20 20 21 class ScriptManager //: public BaseObject21 class ScriptManager : public BaseObject 22 22 { 23 23 public: … … 28 28 29 29 virtual void loadParams(const TiXmlElement* root); 30 void setWorld( std::string& world){currentWorld = world;}30 void setWorld(const std::string& world) {currentWorld = world;} 31 31 32 32 void tick(float timestep); … … 38 38 void init(); 39 39 void createScriptList(const TiXmlElement* scripts); 40 void setCurrentScriptFile( std::string& file);41 void addObjectToScript( std::string object, LuaScript& script);40 void setCurrentScriptFile(const std::string& file); 41 void addObjectToScript(const std::string object, LuaScript& script); 42 42 43 bool fileIsInScriptList( std::string& file);44 bool objectIsInObjectList( std::string& object,const LuaScript& script);43 bool fileIsInScriptList(const std::string& file); 44 bool objectIsInObjectList(const std::string& object, const LuaScript& script); 45 45 46 46
Note: See TracChangeset
for help on using the changeset viewer.