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/invader
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • 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:
Note: See TracChangeset for help on using the changeset viewer.