Changeset 10916 for code/branches/cpp11_v2/src/modules/docking
- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/docking
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/docking/Dock.cc
r10821 r10916 327 327 const DockingEffect* Dock::getEffect(unsigned int i) const 328 328 { 329 for ( const auto & elem: this->effects_)329 for (DockingEffect* effect : this->effects_) 330 330 { 331 331 if(i == 0) 332 return e lem;332 return effect; 333 333 i--; 334 334 } … … 346 346 const DockingAnimation* Dock::getAnimation(unsigned int i) const 347 347 { 348 for ( const auto & elem: this->animations_)348 for (DockingAnimation* animation : this->animations_) 349 349 { 350 350 if(i == 0) 351 return elem;351 return animation; 352 352 i--; 353 353 } -
code/branches/cpp11_v2/src/modules/docking/DockingAnimation.cc
r10821 r10916 57 57 bool check = true; 58 58 59 for ( auto & animations_animation : animations)59 for (DockingAnimation* animation : animations) 60 60 { 61 61 if(dock) 62 check &= (animations_animation)->docking(player);62 check &= animation->docking(player); 63 63 else 64 check &= (animations_animation)->release(player);64 check &= animation->release(player); 65 65 } 66 66 -
code/branches/cpp11_v2/src/modules/docking/DockingEffect.cc
r10821 r10916 53 53 bool check = true; 54 54 55 for ( auto & effects_effect : effects)55 for (DockingEffect* effect : effects) 56 56 { 57 57 if (dock) 58 check &= (effects_effect)->docking(player);58 check &= effect->docking(player); 59 59 else 60 check &= (effects_effect)->release(player);60 check &= effect->release(player); 61 61 } 62 62
Note: See TracChangeset
for help on using the changeset viewer.