Changeset 10041 in orxonox.OLD for branches/ai/src/world_entities/npcs
- Timestamp:
- Dec 11, 2006, 11:12:11 PM (18 years ago)
- Location:
- branches/ai/src/world_entities/npcs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/world_entities/npcs/npc.h
r9869 r10041 4 4 5 5 #include "world_entity.h" 6 #include "ai_team_member.h" 6 7 7 8 class AI; 8 9 9 class NPC : public WorldEntity{10 class NPC : public AITeamMember { 10 11 ObjectListDeclaration(NPC); 11 12 public: -
branches/ai/src/world_entities/npcs/npc_test.cc
r9947 r10041 32 32 33 33 #include "class_id_DEPRECATED.h" 34 34 35 ObjectListDefinitionID(NPC2, CL_NPC_TEST2); 35 36 CREATE_FACTORY(NPC2); … … 42 43 43 44 44 if (root != NULL) 45 this->loadParams(root); 45 if (root != NULL)this->loadParams(root); 46 47 addToTeam(0); 46 48 } 47 49 … … 63 65 void NPC2::tick(float dt) 64 66 { 67 68 65 69 // animating the md2 model (uninteressant) 66 70 if( likely(this->getModel(0) != NULL)) 67 71 ((MD2Model*)this->getModel(0))->tick(dt); 68 72 69 73 return; 74 //this things will now be managed by the AI modules....///// 70 75 71 76 PRINTF(0)("====================\n");
Note: See TracChangeset
for help on using the changeset viewer.