Changeset 8193 in orxonox.OLD for branches/script_engine/src/lib/script_engine/scriptable.cc
- Timestamp:
- Jun 7, 2006, 3:04:14 PM (18 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/scriptable.cc
r8183 r8193 16 16 //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ 17 17 18 #include " proto_class.h"18 #include "scriptable.h" 19 19 20 20 using namespace std; … … 25 25 * @todo this constructor is not jet implemented - do it 26 26 */ 27 ProtoClass::ProtoClass () 27 Scriptable::Scriptable(const std::string& name, ClassID classID) 28 : BaseObject(name) 28 29 { 29 this->setClassID(CL_PROTO_ID, "ProtoClass"); 30 this->setClassID(CL_SCRIPTABLE, "Scriptable"); 31 this->classID = classID; 30 32 31 /* If you make a new class, what is most probably the case when you write this file32 don't forget to:33 1. Add the new file new_class.cc to the ./src/Makefile.am34 2. Add the class identifier to ./src/class_id.h eg. CL_NEW_CLASS35 33 36 Advanced Topics:37 - if you want to let your object be managed via the ObjectManager make sure to read38 the object_manager.h header comments. You will use this most certanly only if you39 make many objects of your class, like a weapon bullet.40 */41 34 } 42 35 … … 45 38 * standard deconstructor 46 39 */ 47 ProtoClass::~ProtoClass()40 Scriptable::~Scriptable () 48 41 { 49 42 // delete what has to be deleted here
Note: See TracChangeset
for help on using the changeset viewer.