Changeset 9705 in orxonox.OLD for branches/new_class_id/src/world_entities/npcs
- Timestamp:
- Aug 25, 2006, 9:44:53 PM (18 years ago)
- Location:
- branches/new_class_id/src/world_entities/npcs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/npcs/npc.cc
r9235 r9705 20 20 #include "npc.h" 21 21 22 NewObjectListDefinition(NPC); 22 23 23 24 NPC::NPC(const TiXmlElement* root) 24 25 { 25 this-> setClassID(CL_NPC, "NPC");26 this->registerObject(this, NPC::_objectList); 26 27 27 28 this->toList(OM_GROUP_00); -
branches/new_class_id/src/world_entities/npcs/npc.h
r8724 r9705 8 8 9 9 class NPC : public WorldEntity { 10 10 NewObjectListDeclaration(NPC); 11 11 public: 12 12 NPC (const TiXmlElement* root); -
branches/new_class_id/src/world_entities/npcs/npc_test1.cc
r9235 r9705 25 25 #include "power_ups/laser_power_up.h" 26 26 27 NewObjectListDefinition(NPCTest1); 27 28 28 29 NPCTest1::NPCTest1() 29 30 : NPC(NULL) 30 31 { 31 this-> setClassID(CL_NPC_TEST1, "NPCTest1");32 this->registerObject(this, NPCTest1::_objectList); 32 33 33 34 if ((float)rand()/RAND_MAX > .5f) -
branches/new_class_id/src/world_entities/npcs/npc_test1.h
r6981 r9705 8 8 9 9 class NPCTest1 : public NPC { 10 10 NewObjectListDeclaration(NPCTest1); 11 11 public: 12 12 NPCTest1 ();
Note: See TracChangeset
for help on using the changeset viewer.