Changeset 8399 in orxonox.OLD for branches/script_engine/src/lib/script_engine/script_class.h
- Timestamp:
- Jun 14, 2006, 4:53:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/script_class.h
r8397 r8399 31 31 32 32 bool operator==(const std::string& name) { return (this->getName() == name); } 33 bool operator==(ClassID classID) { return (this-> classID == classID); }33 bool operator==(ClassID classID) { return (this->_classID == classID); } 34 34 35 35 virtual void registerClass(Script* script) = 0; 36 36 virtual int insertObject(Script* L, BaseObject* obj, bool gc=false) = 0; 37 38 const ScriptMethod* scriptMethods() const { return this->_scriptMethods; } 37 39 38 40 protected: … … 40 42 41 43 private: 42 ClassID classID;43 ScriptMethod* scriptMethods;44 ClassID _classID; 45 ScriptMethod* _scriptMethods; 44 46 }; 45 47 … … 57 59 virtual void registerClass(Script* script) 58 60 { 59 Lunar<T>::Register(script, this->getName() );61 Lunar<T>::Register(script, this->getName(), this->scriptMethods()); 60 62 } 61 63 virtual int insertObject(Script* L, BaseObject* obj, bool gc=false)
Note: See TracChangeset
for help on using the changeset viewer.