- Timestamp:
- May 9, 2019, 2:54:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/PacmanGhost.h
r12325 r12357 37 37 38 38 #include "Pacman.h" 39 //#include "GetShortestPathAlgorithm.h"40 39 41 40 namespace orxonox { … … 64 63 virtual void changewith(PacmanGhost* otherghost); 65 64 virtual void levelupvelo(); 66 67 //bool findpos(Vector3 one, Vector3 other); 65 68 66 virtual void changemovability(); 69 67 bool dontmove = false; … … 81 79 bool lockmove = false; 82 80 83 /*Vector3 getShortestPath(Vector3 start, Vector3 goal);84 81 85 Vector3 setPureArrayPos(Vector3 &posToSet); 86 87 */Vector3 getPlayerPos(); 82 Vector3 getPlayerPos(); 88 83 89 84 Vector3 playerPos; … … 92 87 93 88 Vector3 pointInFrontOfPlayer; 89 94 90 /* 95 96 97 //Vector3 pathAlgorithm;98 99 91 public: //HACK 100 101 92 */ 102 93 103 /*struct graphVertex;104 void findNeighboorVertices(Vector3 actuelposition, graphVertex* adjacentVertices[], graphVertex listOfVerticesP2[]);105 void updateShortestDistanceToStart(graphVertex &vertex, graphVertex &neighboor);106 void findNearestNonVisitedNeighboor (graphVertex &vertex);107 int graphDistance(Vector3 start, Vector3 goal);108 109 graphVertex* findNextVertexToConsider(graphVertex listOfVerticesP[]);110 Vector3 getShortestPath(Vector3 start, Vector3 goal);*/111 94 112 95 struct graphVertex; … … 119 102 Vector3 getShortestPath(Vector3 start, Vector3 goal, Vector3 pointToAvoidP1=Vector3(0,0,0)); 120 103 121 122 123 //functions taken from PacmanPink124 104 125 105
Note: See TracChangeset
for help on using the changeset viewer.