Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2019, 11:23:15 AM (6 years ago)
Author:
peterf
Message:

Pink Bug Workaround

File:
1 edited

Legend:

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

    r12325 r12338  
    5454            }
    5555
    56 
    57         /*if((playerFindPos(this->actuelposition, this->getPlayerPos()))&&(isNearPlayer==false)){
    58             isNearPlayer=true;
    59             setNewTargetRed(this->getPlayerPos());
    60         }
    61         else if (!(playerFindPos(this->actuelposition, this->getPlayerPos())&&(isNearPlayer==true))){
    62             isNearPlayer=false;
    63             setNewTargetRed(this->pointInFrontOfPlayer);
    64         }*/
    65 
    6656            std::cout<<this->lastPlayerPassedPoint<<endl;
    6757            std::cout<<this->pointInFrontOfPlayer<<endl;
     
    110100            //nextMove(this->getPlayerPos(), redPos);
    111101
    112             int directionV = findPlayerTravDir (lastPlayerPassedPoint, this->getPlayerPos());
    113102            this->pointInFrontOfPlayer=frontPosition(); //getPointInFrontOfPacman(lastPlayerPassedPoint, directionV);
    114103
Note: See TracChangeset for help on using the changeset viewer.