Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Presentation_FS19/src/modules/pacman/PacmanBrown.h @ 12408

Last change on this file since 12408 was 12408, checked in by wiesep, 5 years ago

Merged 3DPacman_FS19

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