Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10226 in orxonox.OLD for branches/ai/src/world_entities


Ignore:
Timestamp:
Jan 10, 2007, 6:31:30 PM (18 years ago)
Author:
tfahrni
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/world_entities/npcs/npc_test.cc

    r10138 r10226  
    5151        std::cout << "Team Number: " << teamNumber << "\n";
    5252        std::cout << "Swarm Number:" << swarmNumber << "\n";
    53         aiModule=new MovementModule(this);
    54         AIEngine::getInstance()->addAI(teamNumber,swarmNumber,aiModule);
     53        //aiModule=new MovementModule(this);
     54        //AIEngine::getInstance()->addAI(teamNumber,swarmNumber,aiModule);
     55        AIEngine::getInstance()->addAI(teamNumber,swarmNumber,(WorldEntity*)this);
    5556}
    5657
    5758NPC2::~NPC2()
    5859{
    59         AIEngine::getInstance()->removeAI(teamNumber,swarmNumber,aiModule);
     60        AIEngine::getInstance()->removeAI(teamNumber,swarmNumber,(WorldEntity*)this);
    6061}
    6162
Note: See TracChangeset for help on using the changeset viewer.