Changeset 11071 for code/trunk/src/modules/hover
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/hover/FlagHUD.cc
r11043 r11071 48 48 RegisterObject(FlagHUD); 49 49 50 this->hoverGame_ = NULL;50 this->hoverGame_ = nullptr; 51 51 this->panel_ = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton() 52 52 .createOverlayElement("Panel", "FlagHUD_Panel_" + getUniqueNumberString())); … … 101 101 else 102 102 { 103 this->hoverGame_ = 0;103 this->hoverGame_ = nullptr; 104 104 } 105 105 } -
code/trunk/src/modules/hover/FlagHUD.h
r11041 r11071 47 47 virtual ~FlagHUD(); 48 48 49 virtual void tick(float dt) ;50 virtual void changedOwner() ;49 virtual void tick(float dt) override; 50 virtual void changedOwner() override; 51 51 52 52 void setFlagCount(int flagCount); -
code/trunk/src/modules/hover/Hover.cc
r11043 r11071 48 48 RegisterObject(Hover); 49 49 50 this->origin_ = NULL;50 this->origin_ = nullptr; 51 51 this->numberOfFlags_ = 1; 52 52 this->firstTick_ = true; -
code/trunk/src/modules/hover/Hover.h
r11043 r11071 50 50 Hover(Context* context); 51 51 52 virtual void tick(float dt) ;52 virtual void tick(float dt) override; 53 53 54 54 void setOrigin(HoverOrigin* origin) -
code/trunk/src/modules/hover/HoverFlag.cc
r11043 r11071 49 49 RegisterObject(HoverFlag); 50 50 51 this->model_ = NULL;52 this->cs_ = NULL;51 this->model_ = nullptr; 52 this->cs_ = nullptr; 53 53 this->collided_ = false; 54 54 55 55 this->enableCollisionCallback(); 56 56 this->setCollisionResponse(true); 57 this->setCollisionType( Static);57 this->setCollisionType(CollisionType::Static); 58 58 } 59 59 -
code/trunk/src/modules/hover/HoverFlag.h
r11042 r11071 51 51 void init(int xCoordinate, int yCoordinate, int cellSize); 52 52 53 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) ;53 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 54 54 55 55 inline bool getCollided() const -
code/trunk/src/modules/hover/HoverOrigin.cc
r11040 r11071 58 58 void HoverOrigin::checkGametype() 59 59 { 60 if (getGametype() != NULL&& this->getGametype()->isA(Class(Hover)))60 if (getGametype() != nullptr && this->getGametype()->isA(Class(Hover))) 61 61 { 62 62 Hover* hoverGametype = orxonox_cast<Hover*>(this->getGametype()); -
code/trunk/src/modules/hover/HoverOrigin.h
r11041 r11071 108 108 public: 109 109 HoverOrigin(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Hover. 110 virtual ~HoverOrigin() {}111 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method to create a HoverOrigin through XML.110 virtual ~HoverOrigin() = default; 111 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a HoverOrigin through XML. 112 112 113 113 inline void setNumCells(int numCells) -
code/trunk/src/modules/hover/HoverShip.h
r11041 r11071 44 44 HoverShip(Context* context); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 /// sets this ships jumpBoost … … 53 53 { return this->jumpBoost_; } 54 54 55 virtual void moveFrontBack(const Vector2& value) ;55 virtual void moveFrontBack(const Vector2& value) override; 56 56 57 virtual void moveRightLeft(const Vector2& value) ;57 virtual void moveRightLeft(const Vector2& value) override; 58 58 59 virtual void moveUpDown(const Vector2& value) ;59 virtual void moveUpDown(const Vector2& value) override; 60 60 61 virtual void rotateYaw(const Vector2& value) ;61 virtual void rotateYaw(const Vector2& value) override; 62 62 63 virtual void rotatePitch(const Vector2& value) ;63 virtual void rotatePitch(const Vector2& value) override; 64 64 65 virtual void rotateRoll(const Vector2& value) ;65 virtual void rotateRoll(const Vector2& value) override; 66 66 67 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;67 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 68 68 69 virtual void boost(bool bBoost) ;69 virtual void boost(bool bBoost) override; 70 70 71 71 private: -
code/trunk/src/modules/hover/HoverWall.cc
r11043 r11071 46 46 RegisterObject(HoverWall); 47 47 48 this->model_ = NULL;49 this->cs_ = NULL;48 this->model_ = nullptr; 49 this->cs_ = nullptr; 50 50 51 51 this->enableCollisionCallback(); 52 52 this->setCollisionResponse(true); 53 this->setCollisionType( Static);53 this->setCollisionType(CollisionType::Static); 54 54 } 55 55 -
code/trunk/src/modules/hover/TimeHUD.cc
r11043 r11071 47 47 this->time_ = 0.0f; 48 48 this->running_ = false; 49 this->hoverGame_ = 0;49 this->hoverGame_ = nullptr; 50 50 setRunning(true); 51 51 } … … 98 98 else 99 99 { 100 this->hoverGame_ = 0;100 this->hoverGame_ = nullptr; 101 101 } 102 102 } -
code/trunk/src/modules/hover/TimeHUD.h
r11041 r11071 45 45 TimeHUD(Context* context); 46 46 47 virtual void tick(float dt) ;48 virtual void changedOwner() ;47 virtual void tick(float dt) override; 48 virtual void changedOwner() override; 49 49 50 50 /// sets if the clock is running
Note: See TracChangeset
for help on using the changeset viewer.