- Timestamp:
- Nov 5, 2014, 4:06:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickupsFS14/src/modules/jump/JumpShield.cc
r10074 r10111 21 21 * 22 22 * Author: 23 * Fabi an 'x3n' Landau23 * Fabien Vultier 24 24 * Co-authors: 25 25 * ... … … 29 29 /** 30 30 @file JumpShield.cc 31 @brief I mplementation of the JumpShield class.31 @brief If this shield is created, attachedToFigure_ is set to false. When the figure picks it up, the variable is set to true and the figure is protected until the fuel is reduced to zero. 32 32 */ 33 33 … … 48 48 RegisterClass(JumpShield); 49 49 50 /**51 @brief52 Constructor. Registers and initializes the object.53 */54 50 JumpShield::JumpShield(Context* context) : JumpItem(context) 55 51 { … … 57 53 58 54 fuel_ = 7.0; 55 attachedToFigure_ = false; 59 56 60 57 setPosition(Vector3(0,0,0)); … … 64 61 } 65 62 66 /**67 @brief68 Destructor.69 */70 63 JumpShield::~JumpShield() 71 64 { … … 73 66 } 74 67 75 //xml port for loading sounds76 68 void JumpShield::XMLPort(Element& xmlelement, XMLPort::Mode mode) 77 69 { … … 79 71 } 80 72 81 /**82 @brief83 Is called every tick.84 Handles the movement of the ball and its interaction with the boundaries and bats.85 @param dt86 The time since the last tick.87 */88 73 void JumpShield::tick(float dt) 89 74 { … … 116 101 117 102 attachedToFigure_ = figure_->StartShield(this); 118 if (attachedToFigure_)119 {120 //Starte Feuer-Animation121 }122 103 } 123 104 }
Note: See TracChangeset
for help on using the changeset viewer.