- Timestamp:
- May 3, 2019, 11:23:15 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/PacmanRed.cc
r12325 r12338 54 54 } 55 55 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 66 56 std::cout<<this->lastPlayerPassedPoint<<endl; 67 57 std::cout<<this->pointInFrontOfPlayer<<endl; … … 110 100 //nextMove(this->getPlayerPos(), redPos); 111 101 112 int directionV = findPlayerTravDir (lastPlayerPassedPoint, this->getPlayerPos());113 102 this->pointInFrontOfPlayer=frontPosition(); //getPointInFrontOfPacman(lastPlayerPassedPoint, directionV); 114 103
Note: See TracChangeset
for help on using the changeset viewer.