Changeset 9715 in orxonox.OLD for branches/new_class_id/src/lib/script_engine
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/script_engine
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/script_engine/script.cc
r9713 r9715 23 23 #include "parser/tinyxml/tinyxml.h" 24 24 25 NewObjectListDefinition(Script);25 ObjectListDefinition(Script); 26 26 27 27 CREATE_SCRIPTABLE_CLASS(Script, Script::classID(), … … 155 155 } 156 156 157 BaseObject* object = NewObjectListBase::getBaseObject(objectName, className);157 BaseObject* object = ObjectListBase::getBaseObject(objectName, className); 158 158 // printf(("%s is at %p \n",objectName.c_str(),object); 159 159 if (object != NULL && !objectIsAdded(objectName)) -
branches/new_class_id/src/lib/script_engine/script.h
r9692 r9715 22 22 class Script : public BaseObject 23 23 { 24 NewObjectListDeclaration(Script);24 ObjectListDeclaration(Script); 25 25 public: 26 26 Script(const TiXmlElement* root = NULL); -
branches/new_class_id/src/lib/script_engine/script_class.cc
r9699 r9715 19 19 #include <cassert> 20 20 21 NewObjectListDefinition(ScriptClass);21 ObjectListDefinition(ScriptClass); 22 22 /** 23 23 * @brief standard constructor 24 24 * @todo this constructor is not jet implemented - do it 25 25 */ 26 ScriptClass::ScriptClass(const std::string& name, const NewClassID& classID, ScriptMethod* scriptMethods)26 ScriptClass::ScriptClass(const std::string& name, const ClassID& classID, ScriptMethod* scriptMethods) 27 27 : BaseObject(name), _classID(classID) 28 28 { -
branches/new_class_id/src/lib/script_engine/script_class.h
r9709 r9715 25 25 class ScriptClass : public BaseObject 26 26 { 27 NewObjectListDeclaration(ScriptClass);27 ObjectListDeclaration(ScriptClass); 28 28 29 29 public: … … 37 37 38 38 protected: 39 ScriptClass(const std::string& name, const NewClassID& classID, ScriptMethod* scriptMethods);39 ScriptClass(const std::string& name, const ClassID& classID, ScriptMethod* scriptMethods); 40 40 41 41 private: 42 NewClassID _classID;42 ClassID _classID; 43 43 ScriptMethod* _scriptMethods; 44 44 }; … … 51 51 { 52 52 public: 53 tScriptClass(const std::string& name, NewClassID classID, ScriptMethod* scriptMethods)53 tScriptClass(const std::string& name, ClassID classID, ScriptMethod* scriptMethods) 54 54 : ScriptClass(name, classID, scriptMethods) 55 55 { } -
branches/new_class_id/src/lib/script_engine/script_manager.cc
r9699 r9715 97 97 Script* ScriptManager::getScriptByFile(const std::string& file) 98 98 { 99 for ( NewObjectList<Script>::const_iterator it = Script::objectList().begin();99 for (ObjectList<Script>::const_iterator it = Script::objectList().begin(); 100 100 it != Script::objectList().end(); 101 101 ++it)
Note: See TracChangeset
for help on using the changeset viewer.