- 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/PacmanRed.cc
r12323 r12325 64 64 }*/ 65 65 66 std::cout<<this->lastPlayerPassedPoint<<endl; 67 std::cout<<this->pointInFrontOfPlayer<<endl; 66 68 67 69 … … 109 111 110 112 int directionV = findPlayerTravDir (lastPlayerPassedPoint, this->getPlayerPos()); 111 this->pointInFrontOfPlayer= getPointInFrontOfPacman(lastPlayerPassedPoint, directionV);113 this->pointInFrontOfPlayer=frontPosition(); //getPointInFrontOfPacman(lastPlayerPassedPoint, directionV); 112 114 113 115 … … 146 148 Vector3 nextTarget; 147 149 150 if(redPosP!=playerPos){ 148 151 nextTarget = getShortestPath(redPosP, playerPos); 149 150 setNewTargetGhost(nextTarget); 152 setNewTargetGhost(nextTarget); 153 } 151 154 } 152 155 153 154 155 //save last checkpoint crossed by player156 /*157 void PacmanGelb::tick(float dt){ //last passed point of player158 for(int u=0; u < 67; u++){159 if(findpos(this->getPosition(), possibleposition[u])){160 this->lastPassedPoint=possibleposition[u];161 }162 }163 }164 */165 166 156 }
Note: See TracChangeset
for help on using the changeset viewer.