Changeset 10349 in orxonox.OLD for branches/ai/src/world_entities
- Timestamp:
- Jan 24, 2007, 6:55:21 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.cc
r10275 r10349 55 55 std::cout << "Swarm Number:" << swarmNumber << "\n"; 56 56 57 AIEngine::getInstance()->addAI(teamNumber,swarmNumber,(WorldEntity*)this );57 AIEngine::getInstance()->addAI(teamNumber,swarmNumber,(WorldEntity*)this,maxSpeed,attackDistance); 58 58 59 59 this->bFire = false; … … 132 132 LoadParam(root, "swarm", this, NPC, setSwarmNumber) 133 133 .describe("this sets the swarm number") 134 .defaultValues(0); 135 136 LoadParam(root, "maxSpeed", this, NPC, setMaxSpeed) 137 .describe("this sets the NPC max Speed") 138 .defaultValues(0); 139 140 LoadParam(root, "attackDistance", this, NPC, setAttackDistance) 141 .describe("this sets the NPC distance to target") 134 142 .defaultValues(0); 135 143 } -
branches/ai/src/world_entities/npcs/npc.h
r10275 r10349 36 36 inline void setTeamNumber(int number) { teamNumber=number; } 37 37 inline void setSwarmNumber(int number) { swarmNumber=number; } 38 38 inline void setMaxSpeed(float number) { maxSpeed=number; } 39 inline void setAttackDistance(float number) { attackDistance=number; } 39 40 40 41 private: … … 43 44 int swarmNumber; //!< number of the swarm 44 45 int difficulty; //!< difficulty 46 float maxSpeed; 47 float attackDistance; 45 48 46 49 WeaponManager weaponMan; //!< weapon manager
Note: See TracChangeset
for help on using the changeset viewer.