Changeset 10919 for code/branches/cpp11_v2/src/modules/invader
- Timestamp:
- Dec 5, 2015, 10:47:51 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/invader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/invader/Invader.cc
r10768 r10919 98 98 if (player == nullptr) 99 99 { 100 for ( ObjectList<InvaderShip>::iterator it = ObjectList<InvaderShip>::begin(); it != ObjectList<InvaderShip>::end(); ++it)101 player = *it;100 for (InvaderShip* ship : ObjectList<InvaderShip>()) 101 player = ship; 102 102 } 103 103 return player; -
code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.cc
r10818 r10919 75 75 if (game == nullptr) 76 76 { 77 for ( ObjectList<Invader>::iterator it = ObjectList<Invader>::begin(); it != ObjectList<Invader>::end(); ++it)78 game = *it;77 for (Invader* invader : ObjectList<Invader>()) 78 game = invader; 79 79 } 80 80 return game; -
code/branches/cpp11_v2/src/modules/invader/InvaderShip.cc
r10818 r10919 184 184 if (game == nullptr) 185 185 { 186 for ( ObjectList<Invader>::iterator it = ObjectList<Invader>::begin(); it != ObjectList<Invader>::end(); ++it)187 game = *it;186 for (Invader* invader : ObjectList<Invader>()) 187 game = invader; 188 188 } 189 189 return game;
Note: See TracChangeset
for help on using the changeset viewer.