Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 16, 2017, 4:07:37 PM (7 years ago)
Author:
patricwi
Message:

Merged tgidronFS16

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/modules/hover/HoverShip.cc

    r11041 r11493  
    3333#include "core/CoreIncludes.h"
    3434#include "core/XMLPort.h"
     35#include "Hover.h"
     36//#include "NewHumanController.h"
    3537
    3638#include <BulletCollision/NarrowPhaseCollision/btManifoldPoint.h>
     
    112114        if (bBoost && this->isFloor_)
    113115        {
     116
    114117            this->setVelocity(
    115118                this->getVelocity().x,
     
    120123        }
    121124    }
     125
     126    Hover* HoverShip::getGame()
     127    {
     128        if (game == nullptr)
     129        {
     130            for (Hover* hover : ObjectList<Hover>())
     131                game = hover;
     132        }
     133        return game;
     134    }
     135
     136    void HoverShip::death()
     137    {
     138        getGame()->costLife();
     139        SpaceShip::death();
     140    }
    122141}
Note: See TracChangeset for help on using the changeset viewer.