Last change
on this file since 10158 was
10158,
checked in by tfahrni, 17 years ago
|
tried some new ideas for swarming and fixed a bug in Vector.h
|
File size:
828 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef _AI_MODULE_H |
---|
3 | #define _AI_MODULE_H |
---|
4 | #include "world_entity.h" |
---|
5 | class NPC2; |
---|
6 | |
---|
7 | class AIModule { |
---|
8 | public: |
---|
9 | AIModule(){} |
---|
10 | virtual ~AIModule(){} |
---|
11 | virtual void process(float dt){} |
---|
12 | |
---|
13 | void setDifficulty(int newDifficulty); |
---|
14 | inline void setEnemyList(std::vector<WorldEntity*>* enemyList){this->enemyList=enemyList;} |
---|
15 | inline Vector getPosition(){return myWorldEntity->getAbsCoor();} |
---|
16 | inline Vector getMovement(){return this->movement;} |
---|
17 | inline void setDestination(Vector destination){this->destination=destination;} |
---|
18 | inline void setDestinationMovement(Vector destinationMovement){this->destinationMovement=destinationMovement;} |
---|
19 | |
---|
20 | protected: |
---|
21 | NPC2* myNPC; |
---|
22 | WorldEntity* myWorldEntity; |
---|
23 | std::vector<WorldEntity*>* enemyList; |
---|
24 | Vector destination; |
---|
25 | Vector destinationMovement; |
---|
26 | Vector movement; |
---|
27 | }; |
---|
28 | |
---|
29 | #endif /* _AI_MODULE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.