Changeset 10177 in orxonox.OLD for branches/ai/src/ai/ai_module.h
- Timestamp:
- Jan 3, 2007, 6:39:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/ai/ai_module.h
r10158 r10177 10 10 virtual ~AIModule(){} 11 11 virtual void process(float dt){} 12 12 13 13 void setDifficulty(int newDifficulty); 14 14 inline void setEnemyList(std::vector<WorldEntity*>* enemyList){this->enemyList=enemyList;} 15 15 inline Vector getPosition(){return myWorldEntity->getAbsCoor();} 16 inline Vector getMovement(){return this->movement;}16 inline Vector getMovement(){return movement;} 17 17 inline void setDestination(Vector destination){this->destination=destination;} 18 18 inline void setDestinationMovement(Vector destinationMovement){this->destinationMovement=destinationMovement;} 19 19 inline void setWeight(int weight){this->weight=weight;} 20 inline void setTarget(WorldEntity* target){this->target=target;} 21 20 22 protected: 21 23 NPC2* myNPC; 22 24 WorldEntity* myWorldEntity; 23 25 std::vector<WorldEntity*>* enemyList; 26 24 27 Vector destination; 25 28 Vector destinationMovement; 26 29 Vector movement; 30 31 float weight; 32 float speedMax; 33 34 WorldEntity* target; 27 35 }; 28 36
Note: See TracChangeset
for help on using the changeset viewer.