- Timestamp:
- Jan 31, 2015, 5:31:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/modules/jump/JumpEnemy.cc
r10078 r10215 107 107 if ((position.x < leftBoundary_ && velocity.x < 0) || (position.x > rightBoundary_ && velocity.x > 0)) 108 108 { 109 109 velocity.x = -velocity.x; 110 110 } 111 111 112 112 if ((position.z < lowerBoundary_ && velocity.z < 0) || (position.z > upperBoundary_ && velocity.z > 0)) 113 113 { 114 114 velocity.z = -velocity.z; 115 115 } 116 116 … … 130 130 if(figurePosition.x > enemyPosition.x-width_ && figurePosition.x < enemyPosition.x+width_ && figurePosition.z > enemyPosition.z-height_ && figurePosition.z < enemyPosition.z+height_) 131 131 { 132 132 touchFigure(); 133 133 } 134 134 } … … 158 158 void JumpEnemy::touchFigure() 159 159 { 160 161 162 163 160 if (dead_ == false) 161 { 162 figure_->CollisionWithEnemy(this); 163 } 164 164 } 165 165 }
Note: See TracChangeset
for help on using the changeset viewer.