Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10041 in orxonox.OLD for branches/ai/src/world_entities/npcs


Ignore:
Timestamp:
Dec 11, 2006, 11:12:11 PM (18 years ago)
Author:
tfahrni
Message:

Tried to make some progress with the AI..

Location:
branches/ai/src/world_entities/npcs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/world_entities/npcs/npc.h

    r9869 r10041  
    44
    55#include "world_entity.h"
     6#include "ai_team_member.h"
    67
    78class AI;
    89
    9 class NPC : public WorldEntity {
     10class NPC : public AITeamMember {
    1011  ObjectListDeclaration(NPC);
    1112 public:
  • branches/ai/src/world_entities/npcs/npc_test.cc

    r9947 r10041  
    3232
    3333#include "class_id_DEPRECATED.h"
     34
    3435ObjectListDefinitionID(NPC2, CL_NPC_TEST2);
    3536CREATE_FACTORY(NPC2);
     
    4243
    4344
    44   if (root != NULL)
    45     this->loadParams(root);
     45  if (root != NULL)this->loadParams(root);
     46 
     47  addToTeam(0);
    4648}
    4749
     
    6365void NPC2::tick(float dt)
    6466{
     67       
     68       
    6569  // animating the md2 model (uninteressant)
    6670  if( likely(this->getModel(0) != NULL))
    6771    ((MD2Model*)this->getModel(0))->tick(dt);
    6872
    69 
     73        return;
     74        //this things will now be managed by the AI modules..../////
    7075
    7176  PRINTF(0)("====================\n");
Note: See TracChangeset for help on using the changeset viewer.