- Timestamp:
- May 2, 2019, 1:00:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/PacmanPink.cc
r12325 r12326 36 36 37 37 this->actuelposition = this->getPosition(); 38 //std::cout<<this->actuelposition<<endl; 38 39 39 40 … … 46 47 int directionV = findPlayerTravDir (lastPlayerPassedPoint, this->getPlayerPos()); 47 48 this->pointInFrontOfPlayer=frontPosition(); //getPointInFrontOfPacman(lastPlayerPassedPoint, directionV); 48 std::cout<<this->pointInFrontOfPlayer<<endl; 49 std::cout<<this->lastPlayerPassedPoint<<endl; 49 //std::cout<<this->pointInFrontOfPlayer<<endl; 50 //std::cout<<this->lastPlayerPassedPoint<<endl; 51 52 Vector3 pinkPos=Vector3(this->target_x, 10, this->target_z); 53 //std::cout<<pinkPos<<endl; 50 54 51 55 //Stop, if target arrived … … 87 91 lockmove = true; 88 92 89 Vector3 pinkPos=Vector3(this->target_x, 10, this->target_z); 93 //Vector3 pinkPos=Vector3(this->target_x, 10, this->target_z); 94 //std::cout<<pinkPos<<endl; 90 95 91 96 //int directionV = findPlayerTravDir (lastPlayerPassedPoint, this->getPlayerPos()); … … 114 119 Vector3 nextTarget; 115 120 121 std::cout<<this->actuelposition<<endl; 122 std::cout<<pinkPosP<<endl; 123 std::cout<<playerPos<<endl; 124 std::cout<<pointToAvoidP11<<endl; 125 std::cout<<this->getPlayerPos()<<endl; 126 116 127 if(playerPos==pointToAvoidP11){ //SIGSEV if playerPos==pointToAvoidP11 otherwise 117 128 nextTarget = getShortestPath(pinkPosP, playerPos); 118 129 } 130 /*else if(pinkPosP==pointToAvoidP11){ 131 nextTarget=getShortestPath(pinkPosP, playerPos); 132 }*/ 119 133 else{ 134 //bugs here 135 std::cout<<"msjiowjqiq"<<endl; 120 136 nextTarget = getShortestPath(pinkPosP, playerPos, pointToAvoidP11); 121 137 }
Note: See TracChangeset
for help on using the changeset viewer.