Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2019, 1:07:32 AM (6 years ago)
Author:
peterf
Message:

Red and Pink seem to work better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS19/src/modules/pacman/PacmanPink.cc

    r12324 r12325  
    4545
    4646        int directionV = findPlayerTravDir (lastPlayerPassedPoint, this->getPlayerPos());
    47         this->pointInFrontOfPlayer=getPointInFrontOfPacman(lastPlayerPassedPoint, directionV);
    48         /*std::cout<<this->pointInFrontOfPlayer<<endl;
    49         std::cout<<this->lastPlayerPassedPoint<<endl;*/
     47        this->pointInFrontOfPlayer=frontPosition(); //getPointInFrontOfPacman(lastPlayerPassedPoint, directionV);
     48        std::cout<<this->pointInFrontOfPlayer<<endl;
     49        std::cout<<this->lastPlayerPassedPoint<<endl;
    5050       
    5151        //Stop, if target arrived
     
    9292            //this->pointInFrontOfPlayer=getPointInFrontOfPacman(lastPlayerPassedPoint, directionV);
    9393           
    94             std::cout<<this->lastPlayerPassedPoint<<endl;
     94            //std::cout<<this->lastPlayerPassedPoint<<endl;
    9595
    96             std::cout<<this->pointInFrontOfPlayer<<endl;
     96            //std::cout<<this->pointInFrontOfPlayer<<endl;
    9797            nextMove(pinkPos, pointInFrontOfPlayer, lastPlayerPassedPoint);
    9898
     
    114114        Vector3 nextTarget;
    115115
    116         if(playerPos==pointToAvoidP11){
     116        if(playerPos==pointToAvoidP11){ //SIGSEV if playerPos==pointToAvoidP11 otherwise
    117117            nextTarget = getShortestPath(pinkPosP, playerPos);
    118118        }
Note: See TracChangeset for help on using the changeset viewer.