Rev | Line | |
---|
[12304] | 1 | #ifndef _PacmanBrown_H__ |
---|
| 2 | #define _PacmanBrown_H__ |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | #include "PacmanGhost.h" |
---|
| 6 | //#include "getShortestPath.h" |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | namespace orxonox { |
---|
| 10 | |
---|
| 11 | class _OrxonoxExport PacmanBrown : public PacmanGhost{ |
---|
| 12 | |
---|
| 13 | public : |
---|
| 14 | PacmanBrown(Context* context); |
---|
| 15 | |
---|
| 16 | virtual void tick(float dt) override; //!< Defines which actions the AutonomousDrone has to take in each tick. |
---|
| 17 | |
---|
| 18 | virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; |
---|
| 19 | |
---|
| 20 | void setNewTargetBrown(Vector3 goalToGo); |
---|
| 21 | |
---|
| 22 | void nextMove(Vector3 playerPos, Vector3 redPos); |
---|
| 23 | |
---|
| 24 | int graphDistance(Vector3 start, Vector3 goal); |
---|
| 25 | |
---|
| 26 | int absoluteDistance(Vector3 pos1, Vector3 pos2); |
---|
| 27 | |
---|
| 28 | void fleeMode(); |
---|
| 29 | |
---|
| 30 | |
---|
[12320] | 31 | Vector3 goAdjacentOfPlayer(Vector3 neighboorsOfPlayer[]); |
---|
[12304] | 32 | //they both do the same -_- |
---|
| 33 | Vector3 findPlayerNeighboorNearestToPacman(Vector3 neighboorArray); |
---|
| 34 | |
---|
[12320] | 35 | bool isFleeing; |
---|
[12304] | 36 | |
---|
[12322] | 37 | bool isAdjacentToPlayerLastPastPoint(Vector3 pacmanBrownPos, Vector3 arrayForNeighborPositions[]); |
---|
[12320] | 38 | |
---|
[12325] | 39 | //void findNeighboorPositions(Vector3 actuelposition, Vector3 adjacentPositions[], Vector3 positionArray[]); |
---|
[12322] | 40 | |
---|
| 41 | |
---|
[12304] | 42 | }; |
---|
| 43 | |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.