- Timestamp:
- Apr 28, 2019, 1:07:32 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/PacmanPink.cc
r12324 r12325 45 45 46 46 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; 50 50 51 51 //Stop, if target arrived … … 92 92 //this->pointInFrontOfPlayer=getPointInFrontOfPacman(lastPlayerPassedPoint, directionV); 93 93 94 std::cout<<this->lastPlayerPassedPoint<<endl;94 //std::cout<<this->lastPlayerPassedPoint<<endl; 95 95 96 std::cout<<this->pointInFrontOfPlayer<<endl;96 //std::cout<<this->pointInFrontOfPlayer<<endl; 97 97 nextMove(pinkPos, pointInFrontOfPlayer, lastPlayerPassedPoint); 98 98 … … 114 114 Vector3 nextTarget; 115 115 116 if(playerPos==pointToAvoidP11){ 116 if(playerPos==pointToAvoidP11){ //SIGSEV if playerPos==pointToAvoidP11 otherwise 117 117 nextTarget = getShortestPath(pinkPosP, playerPos); 118 118 }
Note: See TracChangeset
for help on using the changeset viewer.