Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Legend:

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

    r10074 r10111  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Fabien Vultier
    2424 *   Co-authors:
    2525 *      ...
     
    2929/**
    3030    @file JumpRocket.cc
    31     @brief Implementation 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.
    3232*/
    3333
    3434#include "JumpRocket.h"
    35 
    3635#include "core/CoreIncludes.h"
    3736#include "core/GameMode.h"
    3837#include "graphics/Model.h"
    3938#include "gametypes/Gametype.h"
    40 
    4139#include "JumpFigure.h"
    42 
    4340#include "sound/WorldSound.h"
    4441#include "core/XMLPort.h"
     
    4845    RegisterClass(JumpRocket);
    4946
    50     /**
    51     @brief
    52         Constructor. Registers and initializes the object.
    53     */
    5447    JumpRocket::JumpRocket(Context* context) : JumpItem(context)
    5548    {
     
    5750
    5851        fuel_ = 3.0;
     52        attachedToFigure_ = false;
    5953
    6054        setPosition(Vector3(0,0,0));
     
    6458    }
    6559
    66     /**
    67     @brief
    68         Destructor.
    69     */
    7060    JumpRocket::~JumpRocket()
    7161    {
     
    7363    }
    7464
    75     //xml port for loading sounds
    7665    void JumpRocket::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    7766    {
     
    7968    }
    8069
    81     /**
    82     @brief
    83         Is called every tick.
    84         Handles the movement of the ball and its interaction with the boundaries and bats.
    85     @param dt
    86         The time since the last tick.
    87     */
    8870    void JumpRocket::tick(float dt)
    8971    {
     
    11698
    11799        attachedToFigure_ = figure_->StartRocket(this);
    118         if (attachedToFigure_)
    119         {
    120                 //Starte Feuer-Animation
    121         }
    122100    }
    123101}
Note: See TracChangeset for help on using the changeset viewer.