Changeset 10138 in orxonox.OLD for branches/ai/src/world_entities
- Timestamp:
- Dec 21, 2006, 10:14:15 PM (18 years ago)
- Location:
- branches/ai/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/world_entities/npcs/npc.h
r10041 r10138 4 4 5 5 #include "world_entity.h" 6 #include "ai_team_member.h"7 6 8 7 class AI; 9 8 10 class NPC : public AITeamMember{9 class NPC : public WorldEntity { 11 10 ObjectListDeclaration(NPC); 12 11 public: -
branches/ai/src/world_entities/npcs/npc_test.cc
r10135 r10138 51 51 std::cout << "Team Number: " << teamNumber << "\n"; 52 52 std::cout << "Swarm Number:" << swarmNumber << "\n"; 53 54 AITeam* myTeam=AIEngine::getInstance()->getCreateTeam(teamNumber); 55 //std::cout << "Testpoint 4: " << myTeam << "\n"; 56 AISwarm* mySwarm=myTeam->getCreateSwarm(swarmNumber); 57 //std::cout << "Testpoint 5: " << mySwarm << "\n"; 58 mySwarm->addToSwarm(new MovementModule(this)); 59 53 aiModule=new MovementModule(this); 54 AIEngine::getInstance()->addAI(teamNumber,swarmNumber,aiModule); 60 55 } 61 56 62 57 NPC2::~NPC2() 58 { 59 AIEngine::getInstance()->removeAI(teamNumber,swarmNumber,aiModule); 60 } 63 61 64 62 void NPC2::loadParams(const TiXmlElement* root) -
branches/ai/src/world_entities/npcs/npc_test.h
r10135 r10138 15 15 public: 16 16 NPC2 (const TiXmlElement* root); 17 virtual ~NPC2 () {};17 virtual ~NPC2 (); 18 18 virtual void loadParams(const TiXmlElement* root); 19 19 virtual void tick(float dt); 20 inline int getTeam(){return teamNumber;} 20 21 21 22 -
branches/ai/src/world_entities/space_ships/spacecraft_2d.cc
r9947 r10138 151 151 this->travelNode = new PNode(); 152 152 153 this->loadModel("models/ships/mantawing.obj", 5.0f);153 this->loadModel("models/ships/mantawing.obj", 2.5f); 154 154 155 155 // camera - issue
Note: See TracChangeset
for help on using the changeset viewer.