Changeset 9707 in orxonox.OLD for branches/new_class_id/src/world_entities/npcs/npc_test.cc
- Timestamp:
- Aug 25, 2006, 9:58:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/npcs/npc_test.cc
r9235 r9707 30 30 #include "effects/explosion.h" 31 31 32 #include "class_id.h" 32 33 CREATE_FACTORY(NPC2, CL_NPC_TEST2); 33 34 NewObjectListDefinitionID(NPC2, CL_NPC_TEST2); 34 35 35 36 NPC2::NPC2(const TiXmlElement* root) 36 37 : NPC(NULL) 37 38 { 38 this-> setClassID(CL_NPC_TEST2, "NPC2");39 this->registerObject(this, NPC2::_objectList); 39 40 40 41 if ((float)rand()/RAND_MAX > .5f)
Note: See TracChangeset
for help on using the changeset viewer.