Last change
on this file since 12319 was
12319,
checked in by peterf, 5 years ago
|
PacmanPink implementation, but lots of SIGSEGV
|
File size:
886 bytes
|
Rev | Line | |
---|
[12304] | 1 | #ifndef _PacmanPink_H__ |
---|
| 2 | #define _PacmanPink_H__ |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | #include "PacmanGhost.h" |
---|
| 6 | //#include "getShortestPath.h" |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | namespace orxonox { |
---|
| 10 | |
---|
| 11 | class _OrxonoxExport PacmanPink : public PacmanGhost{ |
---|
| 12 | |
---|
| 13 | public : |
---|
| 14 | PacmanPink(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 | |
---|
[12319] | 20 | //void setNewTargetPink(Vector3 goalToGo); |
---|
[12304] | 21 | |
---|
[12319] | 22 | //void nextMove(Vector3 playerPos, Vector3 redPos); |
---|
[12304] | 23 | |
---|
[12317] | 24 | //int findPlayerTravDir (Vector3 playerPosBefore, Vector3 playerPos); |
---|
[12304] | 25 | |
---|
[12317] | 26 | //Vector3 getPointInFrontOfPacman(Vector3 pacLasVisPos,int indexForSWNE); |
---|
[12304] | 27 | |
---|
[12317] | 28 | //Vector3 diffVector (Vector3 start, Vector3 goal); |
---|
[12304] | 29 | |
---|
[12319] | 30 | Vector3 pinkPos; |
---|
| 31 | |
---|
| 32 | void nextMove(Vector3 pinkPosP, Vector3 playerPos, Vector3 pointToAvoidP11=Vector3(0,0,0)); |
---|
| 33 | |
---|
[12304] | 34 | }; |
---|
| 35 | |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.