Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2014, 4:06:09 PM (9 years ago)
Author:
fvultier
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickupsFS14/src/modules/jump/JumpScore.cc

    r10074 r10111  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Fabien Vultier
    2424 *   Co-authors:
    2525 *      ...
     
    2929/**
    3030    @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.
    3232*/
    3333
    3434#include "JumpScore.h"
    35 
    3635#include "core/CoreIncludes.h"
    3736#include "core/XMLPort.h"
    3837#include "util/Convert.h"
    39 
    4038#include "infos/PlayerInfo.h"
    41 
    4239#include "Jump.h"
    43 #include "sound/WorldSound.h" /////////////////////////////
     40#include "sound/WorldSound.h"
    4441
    4542namespace orxonox
     
    4744    RegisterClass(JumpScore);
    4845
    49     /**
    50     @brief
    51         Constructor. Registers and initializes the object.
    52     */
    5346    JumpScore::JumpScore(Context* context) : OverlayText(context)
    5447    {
     
    6053    }
    6154
    62     /**
    63     @brief
    64         Destructor.
    65     */
    6655    JumpScore::~JumpScore()
    6756    {
     
    6958    }
    7059
    71     /**
    72     @brief
    73         Method to create a JumpScore through XML.
    74     */
    7560    void JumpScore::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    7661    {
     
    8267    }
    8368
    84     /**
    85     @brief
    86         Is called each tick.
    87         Creates and sets the caption to be displayed by the JumpScore.
    88     @param dt
    89         The time that has elapsed since the last tick.
    90     */
    9169    void JumpScore::tick(float dt)
    9270    {
    9371        SUPER(JumpScore, tick, dt);
    9472
    95         // If the owner is set. The owner being a Jump game.
    96 
    97         if (this->owner_ != NULL)
     73        if (owner_ != NULL)
    9874        {
    9975            if (!owner_->hasEnded())
     
    12096    }
    12197
    122     /**
    123     @brief
    124         Is called when the owner changes.
    125         Sets the owner to NULL, if it is not a pointer to a Jump game.
    126     */
    12798    void JumpScore::changedOwner()
    12899    {
Note: See TracChangeset for help on using the changeset viewer.