- Timestamp:
- Nov 5, 2014, 4:06:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickupsFS14/src/modules/jump/JumpRocket.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 JumpRocket.cc 31 @brief I mplementation of the JumpRocket class.31 @brief If this rocket is created, attachedToFigure_ is set to false. When the figure picks it up, the variable is set to true and the figure starts flying fast until the fuel is reduced to zero. 32 32 */ 33 33 34 34 #include "JumpRocket.h" 35 36 35 #include "core/CoreIncludes.h" 37 36 #include "core/GameMode.h" 38 37 #include "graphics/Model.h" 39 38 #include "gametypes/Gametype.h" 40 41 39 #include "JumpFigure.h" 42 43 40 #include "sound/WorldSound.h" 44 41 #include "core/XMLPort.h" … … 48 45 RegisterClass(JumpRocket); 49 46 50 /**51 @brief52 Constructor. Registers and initializes the object.53 */54 47 JumpRocket::JumpRocket(Context* context) : JumpItem(context) 55 48 { … … 57 50 58 51 fuel_ = 3.0; 52 attachedToFigure_ = false; 59 53 60 54 setPosition(Vector3(0,0,0)); … … 64 58 } 65 59 66 /**67 @brief68 Destructor.69 */70 60 JumpRocket::~JumpRocket() 71 61 { … … 73 63 } 74 64 75 //xml port for loading sounds76 65 void JumpRocket::XMLPort(Element& xmlelement, XMLPort::Mode mode) 77 66 { … … 79 68 } 80 69 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 70 void JumpRocket::tick(float dt) 89 71 { … … 116 98 117 99 attachedToFigure_ = figure_->StartRocket(this); 118 if (attachedToFigure_)119 {120 //Starte Feuer-Animation121 }122 100 } 123 101 }
Note: See TracChangeset
for help on using the changeset viewer.