Changeset 9709 in orxonox.OLD for branches/new_class_id/src/world_entities/npcs/generic_npc.cc
- Timestamp:
- Aug 31, 2006, 10:51:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/npcs/generic_npc.cc
r9235 r9709 30 30 #include "loading/resource_manager.h" 31 31 32 33 CREATE_FACTORY(GenericNPC, CL_GENERIC_NPC); 32 #include "bsp_entity.h" 33 34 #include "class_id.h" 35 NewObjectListDefinitionID(GenericNPC, CL_GENERIC_NPC); 36 CREATE_FACTORY(GenericNPC); 34 37 35 38 #include "script_class.h" 36 CREATE_SCRIPTABLE_CLASS(GenericNPC, CL_GENERIC_NPC,39 CREATE_SCRIPTABLE_CLASS(GenericNPC, GenericNPC::classID(), 37 40 // Move 38 41 addMethod("walkTo", ExecutorLua3<GenericNPC,float,float,float>(&GenericNPC::walkTo)) … … 81 84 void GenericNPC::init() 82 85 { 83 this-> setClassID(CL_GENERIC_NPC, "GenericNPC");86 this->registerObject(this, GenericNPC::_objectList); 84 87 85 88 this->toList(OM_GROUP_00); … … 92 95 93 96 // collision reaction registration 94 this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, CL_BSP_ENTITY);97 this->subscribeReaction(CREngine::CR_PHYSICS_GROUND_WALK, BspEntity::classID()); 95 98 } 96 99
Note: See TracChangeset
for help on using the changeset viewer.