- Timestamp:
- Jan 31, 2015, 5:31:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/modules/jump/JumpProjectile.cc
r10078 r10215 71 71 Vector3 projectilePosition = getPosition(); 72 72 73 74 75 76 77 73 for (ObjectList<JumpEnemy>::iterator it = ObjectList<JumpEnemy>::begin(); it != ObjectList<JumpEnemy>::end(); ++it) 74 { 75 Vector3 enemyPosition = it->getPosition(); 76 float enemyWidth = it->getWidth(); 77 float enemyHeight = it->getHeight(); 78 78 79 80 81 82 83 79 if(projectilePosition.x > enemyPosition.x-enemyWidth && projectilePosition.x < enemyPosition.x+enemyWidth && projectilePosition.z > enemyPosition.z-enemyHeight && projectilePosition.z < enemyPosition.z+enemyHeight) 80 { 81 it->dead_ = true; 82 } 83 } 84 84 } 85 85
Note: See TracChangeset
for help on using the changeset viewer.