Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 29, 2018, 3:30:24 PM (7 years ago)
Author:
jacobsr
Message:

changed interal definition to orxyroad namespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxyRoad_FS18/src/modules/orxyroad/OrxyRoadRaceShip.cc

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