Changeset 12365
- Timestamp:
- May 9, 2019, 4:24:20 PM (6 years ago)
- Location:
- code/branches/3DPacman_FS19/src/modules/pacman
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/Pacman.cc
r12338 r12365 87 87 if(deathtime != 0){ 88 88 dead(dt); 89 90 if(point > 230){ 91 92 for(PacmanPointSphere* pointer : ObjectList<PacmanPointSphere>()){ 93 pointSpherePosition = pointer->getPosition(); 94 95 if(pointSpherePosition.y > 0){ 96 PacmanLaser* pos = ObjectList<PacmanLaser>(); //to do 97 pos->setPosition(pointSpherePosition); 98 break; 99 } 100 101 102 } 103 104 } 105 89 106 } 90 107 … … 94 111 //Register ghosts 95 112 int i = 0; 96 for(PacmanGhost* nextghost 113 for(PacmanGhost* nextghost: ObjectList<PacmanGhost>()){ 97 114 ghosts[i] = nextghost; 98 115 i++; … … 206 223 void Pacman::takePoint(PacmanPointSphere* taken){ 207 224 ++point; 225 } 208 226 if(point == totallevelpoint){ 209 227 this->levelUp(); -
code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h
r12313 r12365 40 40 #include "PacmanPointSphere.h" 41 41 #include "PacmanPointAfraid.h" 42 42 #include "PacmanLaser.h" 43 43 44 44 #include "core/EventIncludes.h" -
code/branches/3DPacman_FS19/src/modules/pacman/PacmanPointSphere.cc
r12009 r12365 82 82 return false; 83 83 } 84 bool showLaserPointSphere = false; 85 86 87 84 88 85 89 //Reset position
Note: See TracChangeset
for help on using the changeset viewer.