Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2015, 7:55:11 PM (9 years ago)
Author:
muemart
Message:
  • Fixed some suspicious virtual function signatures
  • Fixed some clang warnings (and errors in the last commit, forgot to mention that)
  • Fix compilation without pch
  • Hack "override" keyword support into Tolua++
Location:
code/branches/cpp11_v2/src/modules
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.cc

    r10765 r10818  
    142142    }
    143143
    144     inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     144    inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
    145145    {
    146146
  • code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.h

    r10817 r10818  
    7070            virtual void updateLevel();
    7171
     72            virtual inline bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;
     73
    7274            float speed, damping, posforeward;
    7375            bool isFireing;
     
    7779
    7880        private:
    79             virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
    8081            DodgeRace* getGame();
    8182            WeakPtr<DodgeRace> game;
  • code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.cc

    r10765 r10818  
    6464    }
    6565
    66     inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     66    inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
    6767    {
    6868        if(orxonox_cast<InvaderShip*>(otherObject))
  • code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.h

    r10817 r10818  
    4747
    4848            virtual void tick(float dt) override;
    49             virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
     49            virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;
    5050            virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override;
    5151            virtual void setPlayer(InvaderShip* player){this->player = player;}
  • code/branches/cpp11_v2/src/modules/invader/InvaderShip.cc

    r10765 r10818  
    148148                getGame()->end();
    149149    }
    150     inline bool InvaderShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
     150    inline bool InvaderShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint)
    151151    {
    152152        // orxout() << "touch!!! " << endl; //<< otherObject << " at " << contactPoint;
  • code/branches/cpp11_v2/src/modules/invader/InvaderShip.h

    r10817 r10818  
    6464            virtual void updateLevel();
    6565
    66             virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);
     66            virtual inline bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;
    6767
    6868        protected:
  • code/branches/cpp11_v2/src/modules/objects/controllers/TeamTargetProxy.cc

    r10262 r10818  
    2828
    2929#include "TeamTargetProxy.h"
     30#include "core/CoreIncludes.h"
    3031#include "worldentities/ControllableEntity.h"
    3132#include "worldentities/pawns/Pawn.h"
  • code/branches/cpp11_v2/src/modules/objects/controllers/TurretController.cc

    r10768 r10818  
    3030#include "worldentities/pawns/Pawn.h"
    3131#include "objects/Turret.h"
     32#include "core/object/ObjectList.h"
     33#include "core/CoreIncludes.h"
    3234
    3335 namespace orxonox
  • code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseEnemy.cc

    r10765 r10818  
    5555    }
    5656
    57     void TowerDefenseEnemy::damage(float damage, float healthdamage, float shielddamage, Pawn* originator)
     57    void TowerDefenseEnemy::damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs)
    5858    {
    5959        Pawn::damage(damage, healthdamage, shielddamage, originator);
  • code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseEnemy.h

    r10817 r10818  
    3838
    3939        virtual void tick(float dt) override;
    40         virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator);
     40        virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override;
    4141
    4242    private:
Note: See TracChangeset for help on using the changeset viewer.