- Timestamp:
- Jan 31, 2015, 5:31:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationFS14/src/modules/jump/JumpShield.cc
r10078 r10215 83 83 if(figurePosition.x > shieldPosition.x-width_ && figurePosition.x < shieldPosition.x+width_ && figurePosition.z > shieldPosition.z-height_ && figurePosition.z < shieldPosition.z+height_) 84 84 { 85 85 touchFigure(); 86 86 } 87 87 } 88 88 else if (attachedToFigure_ == true) 89 89 { 90 91 92 93 94 90 fuel_ -= dt; 91 if (fuel_ < 0.0) 92 { 93 figure_->StopShield(this); 94 } 95 95 } 96 96 } … … 98 98 void JumpShield::touchFigure() 99 99 { 100 100 JumpItem::touchFigure(); 101 101 102 102 attachedToFigure_ = figure_->StartShield(this); 103 103 } 104 104 }
Note: See TracChangeset
for help on using the changeset viewer.