Changeset 10111 for code/branches/pickupsFS14/src/modules/jump/JumpScore.cc
- Timestamp:
- Nov 5, 2014, 4:06:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickupsFS14/src/modules/jump/JumpScore.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 JumpScore.cc 31 @brief Implementation of the JumpScore class.31 @brief HUD of thejump minigame. If showScore_ is set, it displays the score. If showMessages_ is set, it displays the game over message. 32 32 */ 33 33 34 34 #include "JumpScore.h" 35 36 35 #include "core/CoreIncludes.h" 37 36 #include "core/XMLPort.h" 38 37 #include "util/Convert.h" 39 40 38 #include "infos/PlayerInfo.h" 41 42 39 #include "Jump.h" 43 #include "sound/WorldSound.h" /////////////////////////////40 #include "sound/WorldSound.h" 44 41 45 42 namespace orxonox … … 47 44 RegisterClass(JumpScore); 48 45 49 /**50 @brief51 Constructor. Registers and initializes the object.52 */53 46 JumpScore::JumpScore(Context* context) : OverlayText(context) 54 47 { … … 60 53 } 61 54 62 /**63 @brief64 Destructor.65 */66 55 JumpScore::~JumpScore() 67 56 { … … 69 58 } 70 59 71 /**72 @brief73 Method to create a JumpScore through XML.74 */75 60 void JumpScore::XMLPort(Element& xmlelement, XMLPort::Mode mode) 76 61 { … … 82 67 } 83 68 84 /**85 @brief86 Is called each tick.87 Creates and sets the caption to be displayed by the JumpScore.88 @param dt89 The time that has elapsed since the last tick.90 */91 69 void JumpScore::tick(float dt) 92 70 { 93 71 SUPER(JumpScore, tick, dt); 94 72 95 // If the owner is set. The owner being a Jump game. 96 97 if (this->owner_ != NULL) 73 if (owner_ != NULL) 98 74 { 99 75 if (!owner_->hasEnded()) … … 120 96 } 121 97 122 /**123 @brief124 Is called when the owner changes.125 Sets the owner to NULL, if it is not a pointer to a Jump game.126 */127 98 void JumpScore::changedOwner() 128 99 {
Note: See TracChangeset
for help on using the changeset viewer.