Changeset 11871 for code/branches
- Timestamp:
- Apr 16, 2018, 11:59:53 PM (7 years ago)
- Location:
- code/branches/3DPacman_FS18/src/modules/Pacman
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.cc
r11870 r11871 76 76 77 77 bcolli = false; 78 for(int nrghost = 0 , (nrghost<3) && (!bcolli),++nrghost){78 for(int nrghost = 0; (nrghost<3) && (!bcolli); ++nrghost){ 79 79 bcolli = collis(ghosts[nrghost]->getPosition(), currentPosition) 80 80 } … … 85 85 i = 0; 86 86 for(PacmanPointSphere* nextsphere : ObjectList<PacmanPointSphere>()){ 87 if(collis(nextsphere .getPosition(), currentPosition)){87 if(collis(nextsphere->getPosition(), currentPosition)){ 88 88 takePoint(nextsphere); 89 89 } … … 120 120 if(point == totallevelpoint) this->levelUp; 121 121 122 Vector3 postaken = taken .getPosition();122 Vector3 postaken = taken->getPosition(); 123 123 postaken.y = -50; 124 taken .setPosition(postaken);124 taken->setPosition(postaken); 125 125 } 126 126 … … 149 149 void Pacman::playerPreSpawn(PlayerInfo* player) 150 150 { 151 PlayerInfo* playerInfo_; 151 152 this->playerInfo_ = player; 152 153 if(lives <= 0) -
code/branches/3DPacman_FS18/src/modules/Pacman/Pacman.h
r11870 r11871 40 40 #include "PacmanPointSphere.h" 41 41 #include "Highscore.h" 42 #include "PlayerInfo.h" 42 43 43 44
Note: See TracChangeset
for help on using the changeset viewer.