Changeset 8408 in orxonox.OLD for trunk/src/lib/script_engine/script_class.cc
- Timestamp:
- Jun 14, 2006, 5:50:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/script_engine/script_class.cc
r8271 r8408 17 17 18 18 #include "script_class.h" 19 20 using namespace std; 21 19 #include <cassert> 22 20 23 21 /** 24 * standard constructor22 * @brief standard constructor 25 23 * @todo this constructor is not jet implemented - do it 26 24 */ 27 ScriptClass::ScriptClass(const std::string& name, ClassID classID )28 : BaseObject(name)25 ScriptClass::ScriptClass(const std::string& name, ClassID classID, ScriptMethod* scriptMethods) 26 : BaseObject(name) 29 27 { 30 this->setClassID(CL_SCRIPT_CLASS, "ScriptClass"); 31 this->classID = classID; 28 assert(scriptMethods != NULL); 29 this->setClassID(CL_SCRIPT_CLASS, "ScriptClass"); 30 31 this->_classID = classID; 32 33 this->_scriptMethods = scriptMethods; 32 34 } 33 35 … … 38 40 ScriptClass::~ScriptClass () 39 41 { 40 // delete what has to be deleted here42 delete this->_scriptMethods; 41 43 }
Note: See TracChangeset
for help on using the changeset viewer.