Changeset 10920 for code/branches/cpp11_v2/src/modules/jump
- Timestamp:
- Dec 6, 2015, 2:51:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/jump/Jump.cc
r10916 r10920 141 141 } 142 142 143 ObjectList<JumpPlatform>::iterator beginPlatform = ObjectList<JumpPlatform>::begin(); 144 ObjectList<JumpPlatform>::iterator endPlatform = ObjectList<JumpPlatform>::end(); 145 ObjectList<JumpPlatform>::iterator itPlatform = beginPlatform; 143 ObjectList<JumpPlatform> listPlatform; 144 ObjectList<JumpPlatform>::iterator itPlatform = listPlatform.begin(); 146 145 Vector3 platformPosition; 147 146 148 while (itPlatform != endPlatform)147 while (itPlatform != listPlatform.end()) 149 148 { 150 149 platformPosition = itPlatform->getPosition(); … … 163 162 164 163 // Deleted deactivated platforms 165 ObjectList<JumpPlatformDisappear>::iterator beginDisappear = ObjectList<JumpPlatformDisappear>::begin(); 166 ObjectList<JumpPlatformDisappear>::iterator endDisappear = ObjectList<JumpPlatformDisappear>::end(); 167 ObjectList<JumpPlatformDisappear>::iterator itDisappear = beginDisappear; 168 169 while (itDisappear != endDisappear) 164 ObjectList<JumpPlatformDisappear> listDisappear; 165 ObjectList<JumpPlatformDisappear>::iterator itDisappear = listDisappear.begin(); 166 167 while (itDisappear != listDisappear.end()) 170 168 { 171 169 if (!itDisappear->isActive()) … … 182 180 } 183 181 184 ObjectList<JumpPlatformTimer>::iterator beginTimer = ObjectList<JumpPlatformTimer>::begin(); 185 ObjectList<JumpPlatformTimer>::iterator endTimer = ObjectList<JumpPlatformTimer>::end(); 186 ObjectList<JumpPlatformTimer>::iterator itTimer = beginTimer; 187 188 while (itTimer != endTimer) 182 ObjectList<JumpPlatformTimer> listTimer; 183 ObjectList<JumpPlatformTimer>::iterator itTimer = listTimer.begin(); 184 185 while (itTimer != listTimer.end()) 189 186 { 190 187 if (!itTimer->isActive()) … … 201 198 } 202 199 203 ObjectList<JumpProjectile>::iterator beginProjectile = ObjectList<JumpProjectile>::begin(); 204 ObjectList<JumpProjectile>::iterator endProjectile = ObjectList<JumpProjectile>::end(); 205 ObjectList<JumpProjectile>::iterator itProjectile = beginProjectile; 200 ObjectList<JumpProjectile> listProjectile; 201 ObjectList<JumpProjectile>::iterator itProjectile = listProjectile.begin(); 206 202 Vector3 projectilePosition; 207 203 208 while (itProjectile != endProjectile)204 while (itProjectile != listProjectile.end()) 209 205 { 210 206 projectilePosition = itProjectile->getPosition(); … … 222 218 } 223 219 224 ObjectList<JumpEnemy>::iterator beginEnemy = ObjectList<JumpEnemy>::begin(); 225 ObjectList<JumpEnemy>::iterator endEnemy = ObjectList<JumpEnemy>::end(); 226 ObjectList<JumpEnemy>::iterator itEnemy = beginEnemy; 220 ObjectList<JumpEnemy> listEnemy; 221 ObjectList<JumpEnemy>::iterator itEnemy = listEnemy.begin(); 227 222 Vector3 enemyPosition; 228 223 229 while (itEnemy != endEnemy)224 while (itEnemy != listEnemy.end()) 230 225 { 231 226 enemyPosition = itEnemy->getPosition(); … … 243 238 } 244 239 245 ObjectList<JumpItem>::iterator beginItem = ObjectList<JumpItem>::begin(); 246 ObjectList<JumpItem>::iterator endItem = ObjectList<JumpItem>::end(); 247 ObjectList<JumpItem>::iterator itItem = beginItem; 240 ObjectList<JumpItem> listItem; 241 ObjectList<JumpItem>::iterator itItem = listItem.begin(); 248 242 Vector3 itemPosition; 249 243 250 while (itItem != endItem)244 while (itItem != listItem.end()) 251 245 { 252 246 itemPosition = itItem->getPosition();
Note: See TracChangeset
for help on using the changeset viewer.