Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/3DPacman_FS19/src/modules/pacman/PacmanBrown.h @ 12320

Last change on this file since 12320 was 12320, checked in by peterf, 5 years ago

began PacmanBrown and Cyan implementation

File size: 876 bytes
Line 
1#ifndef _PacmanBrown_H__
2#define _PacmanBrown_H__
3
4
5#include "PacmanGhost.h"
6//#include "getShortestPath.h"
7
8
9namespace 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(Vector3 neighboorsOfPlayer[]);
32                        //they both do the same -_-
33                        Vector3 findPlayerNeighboorNearestToPacman(Vector3 neighboorArray);
34
35        bool isFleeing;
36
37
38        };
39
40}
41
42#endif
Note: See TracBrowser for help on using the repository browser.