Changeset 10818 for code/branches/cpp11_v2
- Timestamp:
- Nov 19, 2015, 7:55:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/external/tolua/lua/package.lua
r8729 r10818 82 82 self.code = gsub(self.code,"%s*@%s*","@") -- eliminate spaces beside @ 83 83 self.code = gsub(self.code,"%s?inline(%s)","%1") -- eliminate 'inline' keyword 84 self.code = gsub(self.code,"%)%s?override;",");") -- eliminate 'override' keyword... at least most of the times 84 85 --self.code = gsub(self.code,"%s?extern(%s)","%1") -- eliminate 'extern' keyword 85 86 --self.code = gsub(self.code,"%s?virtual(%s)","%1") -- eliminate 'virtual' keyword -
code/branches/cpp11_v2/src/libraries/core/config/SettingsConfigFile.h
r10769 r10818 68 68 ~SettingsConfigFile(); 69 69 70 void load() ; // tolua_export70 void load() override; // tolua_export 71 71 void setFilename(const std::string& filename); // tolua_export 72 72 void clean(bool bCleanComments = false); // tolua_export -
code/branches/cpp11_v2/src/libraries/util/Math.h
r10813 r10818 182 182 { 183 183 // Default, raise a compiler error without including large boost header cascade. 184 T temp ();184 T temp{}; 185 185 *********temp; // If you reach this code, you abused zeroise()! 186 186 return temp; -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.cc
r10765 r10818 142 142 } 143 143 144 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)144 inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 145 145 { 146 146 -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.h
r10817 r10818 70 70 virtual void updateLevel(); 71 71 72 virtual inline bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 73 72 74 float speed, damping, posforeward; 73 75 bool isFireing; … … 77 79 78 80 private: 79 virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);80 81 DodgeRace* getGame(); 81 82 WeakPtr<DodgeRace> game; -
code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.cc
r10765 r10818 64 64 } 65 65 66 inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)66 inline bool InvaderEnemy::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 67 67 { 68 68 if(orxonox_cast<InvaderShip*>(otherObject)) -
code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.h
r10817 r10818 47 47 48 48 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; 50 50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override; 51 51 virtual void setPlayer(InvaderShip* player){this->player = player;} -
code/branches/cpp11_v2/src/modules/invader/InvaderShip.cc
r10765 r10818 148 148 getGame()->end(); 149 149 } 150 inline bool InvaderShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)150 inline bool InvaderShip::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 151 151 { 152 152 // orxout() << "touch!!! " << endl; //<< otherObject << " at " << contactPoint; -
code/branches/cpp11_v2/src/modules/invader/InvaderShip.h
r10817 r10818 64 64 virtual void updateLevel(); 65 65 66 virtual inline bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);66 virtual inline bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 67 67 68 68 protected: -
code/branches/cpp11_v2/src/modules/objects/controllers/TeamTargetProxy.cc
r10262 r10818 28 28 29 29 #include "TeamTargetProxy.h" 30 #include "core/CoreIncludes.h" 30 31 #include "worldentities/ControllableEntity.h" 31 32 #include "worldentities/pawns/Pawn.h" -
code/branches/cpp11_v2/src/modules/objects/controllers/TurretController.cc
r10768 r10818 30 30 #include "worldentities/pawns/Pawn.h" 31 31 #include "objects/Turret.h" 32 #include "core/object/ObjectList.h" 33 #include "core/CoreIncludes.h" 32 34 33 35 namespace orxonox -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseEnemy.cc
r10765 r10818 55 55 } 56 56 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) 58 58 { 59 59 Pawn::damage(damage, healthdamage, shielddamage, originator); -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseEnemy.h
r10817 r10818 38 38 39 39 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; 41 41 42 42 private: -
code/branches/cpp11_v2/src/orxonox/Level.cc
r10768 r10818 30 30 31 31 #include "util/Math.h" 32 #include "util/SubString.h" 32 33 #include "core/CoreIncludes.h" 33 34 #include "core/Loader.h" -
code/branches/cpp11_v2/src/orxonox/Level.h
r10817 r10818 37 37 #include "core/BaseObject.h" 38 38 #include "network/synchronisable/Synchronisable.h" 39 #include "core/object/Context.h" 39 40 #include "graphics/MeshLodInformation.h" 40 41 -
code/branches/cpp11_v2/src/orxonox/Scene.h
r10817 r10818 40 40 #include "util/OgreForwardRefs.h" 41 41 #include "core/BaseObject.h" 42 #include "core/object/Context.h" 42 43 #include "network/synchronisable/Synchronisable.h" 43 44 #include "tools/interfaces/Tickable.h" -
code/branches/cpp11_v2/src/orxonox/chat/ChatHistory.cc
r10624 r10818 30 30 #include "core/singleton/ScopedSingletonIncludes.h" 31 31 #include "core/ConfigurablePaths.h" 32 #include "core/CoreIncludes.h" 32 33 33 34 #ifndef CHATTEST -
code/branches/cpp11_v2/src/orxonox/gamestates/GSRoot.cc
r10768 r10818 34 34 #include "core/GameMode.h" 35 35 #include "core/command/ConsoleCommandIncludes.h" 36 #include "core/object/ObjectList.h" 36 37 #include "network/NetworkFunctionIncludes.h" 37 38 #include "tools/Timer.h" -
code/branches/cpp11_v2/src/orxonox/worldentities/Drone.cc
r10768 r10818 30 30 31 31 #include "core/XMLPort.h" 32 #include "core/CoreIncludes.h" 32 33 #include "BulletDynamics/Dynamics/btRigidBody.h" 33 34 -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/FpsPlayer.cc
r9667 r10818 282 282 } 283 283 284 bool FpsPlayer::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)284 bool FpsPlayer::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 285 285 { 286 286 if (contactPoint.m_normalWorldOnB.y() > 0.6) -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/FpsPlayer.h
r9667 r10818 69 69 virtual void fire(); 70 70 71 bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint);71 bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 72 72 73 73 virtual void addedWeaponPack(WeaponPack* wPack);
Note: See TracChangeset
for help on using the changeset viewer.