Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2015, 2:40:08 PM (9 years ago)
Author:
bucyril
Message:

1234

M hover/Hover.cc
M hover/Hover.h
M hover/HoverShip.cc
A hover/HoverPrereqs.h
M hover/HoverShip.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/src/modules/hover/HoverShip.cc

    r10657 r10659  
    2121 *
    2222 *   Author:
    23  *      Florian Zinggeler
     23 *      Cyrill Burgener
    2424 *   Co-authors:
    2525 *      ...
     
    2828
    2929/**
    30     @file DodgeRaceShip.cc
    31     @brief Implementation of the DodgeRaceShip class.
     30    @file HoverShip.cc
     31    @brief Implementation of the HoverShip class.
    3232*/
    3333
    34 #include "DodgeRaceShip.h"
     34#include "HoverShip.h"
    3535#include "core/CoreIncludes.h"
    3636
    3737namespace orxonox
    3838{
    39     RegisterClass(DodgeRaceShip);
     39    RegisterClass(HoverShip);
    4040
    41     DodgeRaceShip::DodgeRaceShip(Context* context) : SpaceShip(context)
     41    HoverShip::HoverShip(Context* context) : SpaceShip(context)
    4242    {
    43         RegisterObject(DodgeRaceShip);
     43        RegisterObject(HoverShip);
    4444
    4545        speed = 830;
     
    5353    }
    5454
    55     void DodgeRaceShip::tick(float dt)
     55    void HoverShip::tick(float dt)
    5656    {
    5757        Vector3 pos = getPosition();
     
    115115        }
    116116
    117         SUPER(DodgeRaceShip, tick, dt);
     117        SUPER(HoverShip, tick, dt);
    118118    }
    119119
    120     void DodgeRaceShip::updateLevel()
     120    void HoverShip::updateLevel()
    121121    {
    122122        lastTime = 0;
     
    125125    }
    126126
    127     void DodgeRaceShip::moveFrontBack(const Vector2& value)
     127    void HoverShip::moveFrontBack(const Vector2& value)
    128128    {
    129129        //lastTimeFront = 0;
     
    132132    }
    133133
    134     void DodgeRaceShip::moveRightLeft(const Vector2& value)
     134    void HoverShip::moveRightLeft(const Vector2& value)
    135135    {
    136136        lastTimeLeft = 0;
    137137        desiredVelocity.x = value.x * speed;
    138138    }
    139     void DodgeRaceShip::boost(bool bBoost)
     139    void HoverShip::boost(bool bBoost)
    140140    {
    141141        //getGame()->bEndGame = bBoost;
    142142    }
    143143
    144     inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     144    inline bool HoverShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    145145    {
    146146
     
    150150    }
    151151
    152     DodgeRace* DodgeRaceShip::getGame()
     152    Hover* HoverShip::getGame()
    153153    {
    154154        if (game == NULL)
    155155        {
    156             for (ObjectList<DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it)
     156            for (ObjectList<Hover>::iterator it = ObjectList<Hover>::begin(); it != ObjectList<Hover>::end(); ++it)
    157157            {
    158158                game = *it;
     
    162162    }
    163163
    164     void DodgeRaceShip::death()
     164    void HoverShip::death()
    165165    {
    166166        getGame()->costLife();
Note: See TracChangeset for help on using the changeset viewer.