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 | |
---|
| 31 | Vector3 goAdjacentOfPlayer(Vector neighboorsOfPlayer[]); |
---|
| 32 | //they both do the same -_- |
---|
| 33 | Vector3 findPlayerNeighboorNearestToPacman(Vector3 neighboorArray); |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.