Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2019, 2:54:22 PM (5 years ago)
Author:
peterf
Message:

Improved formatting and added some comments to make the code more precise

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS19/src/modules/pacman/PacmanGhost.h

    r12325 r12357  
    3737
    3838#include "Pacman.h"
    39 //#include "GetShortestPathAlgorithm.h"
    4039
    4140namespace orxonox {
     
    6463            virtual void changewith(PacmanGhost* otherghost);
    6564            virtual void levelupvelo();
    66 
    67             //bool findpos(Vector3 one, Vector3 other);     
     65     
    6866            virtual void changemovability();
    6967            bool dontmove = false;
     
    8179            bool lockmove = false;
    8280
    83         /*Vector3 getShortestPath(Vector3 start, Vector3 goal);
    8481
    85         Vector3 setPureArrayPos(Vector3 &posToSet);
    86 
    87         */Vector3 getPlayerPos();
     82        Vector3 getPlayerPos();
    8883
    8984        Vector3 playerPos;
     
    9287
    9388        Vector3 pointInFrontOfPlayer;
     89       
    9490        /*
    95 
    96 
    97         //Vector3 pathAlgorithm;
    98 
    9991    public: //HACK
    100 
    10192    */
    10293
    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);*/
    11194
    11295    struct graphVertex;
     
    119102    Vector3 getShortestPath(Vector3 start, Vector3 goal, Vector3 pointToAvoidP1=Vector3(0,0,0));
    120103
    121 
    122 
    123     //functions taken from PacmanPink
    124104
    125105
Note: See TracChangeset for help on using the changeset viewer.