- Timestamp:
- May 9, 2019, 2:54:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/PacmanBrown.cc
r12338 r12357 16 16 this->target_x=0; 17 17 this->target_z=15; 18 this->lastPlayerPassedPoint=Vector3(0,0,0); //Vector3(70,10,-135);18 this->lastPlayerPassedPoint=Vector3(0,0,0); 19 19 20 20 } … … 79 79 80 80 this->ismoving=false; 81 std::cout<<"weie"<<endl;82 81 } 83 82 84 83 //Check on which position the ghost has arrived and set new target 85 84 else{ 86 std::cout<<"naye"<<endl;87 85 while(lockmove){}; 88 86 lockmove = true; … … 92 90 93 91 Vector3 brownPos=Vector3(this->target_x, 10, this->target_z); 94 std::cout<<brownPos<<endl;95 92 96 93 … … 98 95 if(findpos(brownPos, Vector3(-215,10,-195))){ 99 96 this->isFleeing=false; 100 //Vector3 nextMoveP = getShortestPath(brownPos, this->lastPlayerPassedPoint);101 //this->setNewTargetGhost(nextMoveP);102 97 } 103 98 else{ … … 124 119 setNewTargetGhost(nextMove); 125 120 } 126 121 127 122 } 128 std::cout<<this->isFleeing<<endl;129 123 130 124
Note: See TracChangeset
for help on using the changeset viewer.