Changeset 10845 for code/branches/cpp11_v2/src/orxonox
- Timestamp:
- Nov 23, 2015, 10:20:29 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/orxonox
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/PlayerManager.h
r10817 r10845 50 50 { return this->clients_; } 51 51 52 v oid clientConnected(unsigned int clientID) override;53 v oid clientDisconnected(unsigned int clientID) override;52 virtual void clientConnected(unsigned int clientID) override; 53 virtual void clientDisconnected(unsigned int clientID) override; 54 54 void disconnectAllClients(); 55 55 -
code/branches/cpp11_v2/src/orxonox/Scene.h
r10818 r10845 80 80 { return this->radar_; } 81 81 82 inline virtualuint32_t getSceneID() const override { return this->getObjectID(); }82 virtual inline uint32_t getSceneID() const override { return this->getObjectID(); } 83 83 84 84 virtual void tick(float dt) override; -
code/branches/cpp11_v2/src/orxonox/chat/ChatInputHandler.h
r10817 r10845 125 125 * history window of the full chat window) 126 126 */ 127 v oid incomingChat(const std::string& message, const std::string& name) override;127 virtual void incomingChat(const std::string& message, const std::string& name) override; 128 128 129 129 /** \param full true means show full chat window with history, -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.h
r10817 r10845 74 74 private: 75 75 void updatePublicShape(); 76 inline virtualbtCollisionShape* createNewShape() const override76 virtual inline btCollisionShape* createNewShape() const override 77 77 { assert(false); return nullptr; } 78 78 -
code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r10817 r10845 49 49 50 50 private: 51 v oid parentChanged() override;51 virtual void parentChanged() override; 52 52 53 53 WorldEntity* worldEntityOwner_; -
code/branches/cpp11_v2/src/orxonox/gamestates/GSClient.h
r10817 r10845 43 43 ~GSClient(); 44 44 45 v oid activate() override;46 v oid deactivate() override;47 v oid update(const Clock& time) override;45 virtual void activate() override; 46 virtual void deactivate() override; 47 virtual void update(const Clock& time) override; 48 48 }; 49 49 } -
code/branches/cpp11_v2/src/orxonox/gamestates/GSGraphics.h
r10817 r10845 53 53 ~GSGraphics(); 54 54 55 v oid activate() override;56 v oid deactivate() override;57 v oid update(const Clock& time) override;55 virtual void activate() override; 56 virtual void deactivate() override; 57 virtual void update(const Clock& time) override; 58 58 59 59 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSLevel.h
r10817 r10845 44 44 ~GSLevel(); 45 45 46 v oid activate() override;47 v oid deactivate() override;48 v oid update(const Clock& time) override;46 virtual void activate() override; 47 virtual void deactivate() override; 48 virtual void update(const Clock& time) override; 49 49 50 50 static void startMainMenu(void); //!< Starts the MainMenu -
code/branches/cpp11_v2/src/orxonox/gamestates/GSMainMenu.h
r10817 r10845 44 44 ~GSMainMenu(); 45 45 46 v oid activate() override;47 v oid deactivate() override;48 v oid update(const Clock& time) override;46 virtual void activate() override; 47 virtual void deactivate() override; 48 virtual void update(const Clock& time) override; 49 49 50 50 void setConfigValues(); -
code/branches/cpp11_v2/src/orxonox/gamestates/GSMasterServer.h
r10817 r10845 45 45 ~GSMasterServer(); 46 46 47 v oid activate() override;48 v oid deactivate() override;49 v oid update(const Clock& time) override;47 virtual void activate() override; 48 virtual void deactivate() override; 49 virtual void update(const Clock& time) override; 50 50 51 51 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSRoot.h
r10817 r10845 44 44 static void printObjects(); 45 45 46 v oid activate() override;47 v oid deactivate() override;48 v oid update(const Clock& time) override;46 virtual void activate() override; 47 virtual void deactivate() override; 48 virtual void update(const Clock& time) override; 49 49 50 50 // this has to be public because proteced triggers a bug in msvc -
code/branches/cpp11_v2/src/orxonox/gamestates/GSServer.h
r10817 r10845 43 43 ~GSServer(); 44 44 45 v oid activate() override;46 v oid deactivate() override;47 v oid update(const Clock& time) override;45 virtual void activate() override; 46 virtual void deactivate() override; 47 virtual void update(const Clock& time) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSStandalone.h
r10817 r10845 41 41 ~GSStandalone(); 42 42 43 v oid activate() override;44 v oid deactivate() override;45 v oid update(const Clock& time) override;43 virtual void activate() override; 44 virtual void deactivate() override; 45 virtual void update(const Clock& time) override; 46 46 47 47 private: -
code/branches/cpp11_v2/src/orxonox/gametypes/Dynamicmatch.h
r10817 r10845 78 78 void grantPigBoost(SpaceShip* spaceship); // Grant the piggy a boost. 79 79 void resetSpeedFactor(SpaceShip* spaceship); 80 v oid tick (float dt) override;// used to end the game81 SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const override;80 virtual void tick (float dt) override;// used to end the game 81 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const override; 82 82 83 83 -
code/branches/cpp11_v2/src/orxonox/gametypes/LastManStanding.h
r10817 r10845 80 80 81 81 void punishPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining". 82 v oid tick (float dt) override; //!< used to end the game82 virtual void tick (float dt) override; //!< used to end the game 83 83 }; 84 84 } -
code/branches/cpp11_v2/src/orxonox/gametypes/LastTeamStanding.h
r10817 r10845 80 80 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; //!< If a player shoot's an opponent, his punishment countdown will be resetted. 81 81 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override; //!< Resets punishment time and respawn delay. 82 v oid tick (float dt) override; //!< used to end the game82 virtual void tick (float dt) override; //!< used to end the game 83 83 virtual void end() override; //!< Sends an end message. 84 84 void punishPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining". -
code/branches/cpp11_v2/src/orxonox/gametypes/UnderAttack.h
r10817 r10845 43 43 44 44 void setConfigValues(); 45 v oid tick (float dt) override;45 virtual void tick (float dt) override; 46 46 void addDestroyer(Destroyer* destroyer); 47 47 inline Destroyer* getDestroyer() const -
code/branches/cpp11_v2/src/orxonox/graphics/Camera.h
r10817 r10845 72 72 void configvaluecallback_changedNearClipDistance(); 73 73 74 v oid windowResized(unsigned int newWidth, unsigned int newHeight) override;74 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override; 75 75 76 76 Ogre::Camera* camera_; -
code/branches/cpp11_v2/src/orxonox/infos/Bot.h
r10817 r10845 45 45 void setConfigValues(); 46 46 47 inline bool isInitialized() const override47 virtual inline bool isInitialized() const override 48 48 { return true; } 49 inline float getPing() const override49 virtual inline float getPing() const override 50 50 { return 0; } 51 inline float getPacketLossRatio() const override51 virtual inline float getPacketLossRatio() const override 52 52 { return 0; } 53 53 -
code/branches/cpp11_v2/src/orxonox/infos/HumanPlayer.h
r10817 r10845 45 45 void setConfigValues(); 46 46 47 bool isInitialized() const override;48 float getPing() const override;49 float getPacketLossRatio() const override;47 virtual bool isInitialized() const override; 48 virtual float getPing() const override; 49 virtual float getPacketLossRatio() const override; 50 50 51 51 void setClientID(unsigned int clientID); -
code/branches/cpp11_v2/src/orxonox/interfaces/PickupCarrier.h
r10817 r10845 77 77 PickupCarrier(); //!< Constructor. 78 78 virtual ~PickupCarrier(); //!< Destructor. 79 v oid preDestroy(void) override; //!< Is called before the PickupCarrier is effectively destroyed.79 virtual void preDestroy(void) override; //!< Is called before the PickupCarrier is effectively destroyed. 80 80 81 81 bool isTarget(const Pickupable* pickup) const; //!< Can be used to check whether the PickupCarrier or a child of his is a target ot the input Pickupable. -
code/branches/cpp11_v2/src/orxonox/overlays/GUISheet.h
r10817 r10845 44 44 ~GUISheet(); 45 45 46 v oid XMLPort(Element& xmlelement, XMLPort::Mode mode) override;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 void show(); -
code/branches/cpp11_v2/src/orxonox/overlays/InGameConsole.h
r10817 r10845 53 53 void setConfigValues(); 54 54 55 v oid preUpdate(const Clock& time) override;56 v oid postUpdate(const Clock& time) override { /*no action*/ }55 virtual void preUpdate(const Clock& time) override; 56 virtual void postUpdate(const Clock& time) override { /*no action*/ } 57 57 58 58 static void openConsole(); … … 65 65 void deactivate(); 66 66 67 v oid linesChanged() override;68 v oid lineAdded() override;69 v oid inputChanged() override;70 v oid cursorChanged() override;71 v oid executed() override;72 v oid exit() override;67 virtual void linesChanged() override; 68 virtual void lineAdded() override; 69 virtual void inputChanged() override; 70 virtual void cursorChanged() override; 71 virtual void executed() override; 72 virtual void exit() override; 73 73 74 74 void shiftLines(); … … 77 77 void print(const std::string& text, Shell::LineType type, int index, bool alwaysShift = false); 78 78 79 v oid windowResized(unsigned int newWidth, unsigned int newHeight) override;79 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override; 80 80 81 81 // config value related -
code/branches/cpp11_v2/src/orxonox/overlays/OrxonoxOverlay.h
r10817 r10845 206 206 207 207 private: 208 v oid windowResized(unsigned int newWidth, unsigned int newHeight) override;208 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override; 209 209 210 210 static unsigned int hudOverlayCounter_s; //!< Static counter for hud elements -
code/branches/cpp11_v2/src/orxonox/sound/AmbientSound.h
r10817 r10845 50 50 AmbientSound(); 51 51 52 v oid play() override;53 bool stop() override;54 v oid pause() override;52 virtual void play() override; 53 virtual bool stop() override; 54 virtual void pause() override; 55 55 56 56 bool setAmbientSource(const std::string& source); … … 66 66 67 67 private: 68 v oid preDestroy() override;69 float getRealVolume() override;70 bool moodChanged(const std::string& mood) override;68 virtual void preDestroy() override; 69 virtual float getRealVolume() override; 70 virtual bool moodChanged(const std::string& mood) override; 71 71 inline void ambientSourceChanged() 72 72 { this->setAmbientSource(this->ambientSource_); } -
code/branches/cpp11_v2/src/orxonox/sound/SoundManager.h
r10817 r10845 68 68 ~SoundManager(); 69 69 70 v oid preUpdate(const Clock& time) override;71 v oid postUpdate(const Clock& time) override { /*no action*/ }70 virtual void preUpdate(const Clock& time) override; 71 virtual void postUpdate(const Clock& time) override { /*no action*/ } 72 72 void setConfigValues(); 73 73 -
code/branches/cpp11_v2/src/orxonox/sound/WorldAmbientSound.h
r10817 r10845 50 50 virtual ~WorldAmbientSound(); 51 51 52 v oid XMLPort(Element& xmlelement, XMLPort::Mode mode) override;53 v oid XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 55 virtual void changedActivity() override; -
code/branches/cpp11_v2/src/orxonox/sound/WorldSound.h
r10817 r10845 47 47 WorldSound(Context* context); 48 48 49 v oid XMLPort(Element& xmlelement, XMLPort::Mode mode) override;50 v oid XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override;51 v oid changedActivity() override;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 51 virtual void changedActivity() override; 52 52 53 v oid tick(float dt) override;53 virtual void tick(float dt) override; 54 54 55 55 protected: … … 58 58 private: 59 59 void registerVariables(); 60 v oid initialiseSource() override;61 float getRealVolume() override;60 virtual void initialiseSource() override; 61 virtual float getRealVolume() override; 62 62 }; 63 63 } -
code/branches/cpp11_v2/src/orxonox/worldentities/ControllableEntity.h
r10817 r10845 141 141 using MobileEntity::setAngularVelocity; 142 142 143 v oid setPosition(const Vector3& position) override;144 v oid setOrientation(const Quaternion& orientation) override;145 v oid setVelocity(const Vector3& velocity) override;146 v oid setAngularVelocity(const Vector3& velocity) override;143 virtual void setPosition(const Vector3& position) override; 144 virtual void setOrientation(const Quaternion& orientation) override; 145 virtual void setVelocity(const Vector3& velocity) override; 146 virtual void setAngularVelocity(const Vector3& velocity) override; 147 147 148 148 inline bool hasLocalController() const … … 214 214 215 215 // Bullet btMotionState related 216 v oid setWorldTransform(const btTransform& worldTrans) override;216 virtual void setWorldTransform(const btTransform& worldTrans) override; 217 217 218 218 unsigned int server_overwrite_; -
code/branches/cpp11_v2/src/orxonox/worldentities/MobileEntity.h
r10817 r10845 64 64 inline void setVelocity(float x, float y, float z) 65 65 { this->setVelocity(Vector3(x, y, z)); } 66 inline const Vector3& getVelocity() const override66 virtual inline const Vector3& getVelocity() const override 67 67 { return this->linearVelocity_; } 68 68 /** … … 109 109 // Bullet btMotionState related 110 110 virtual void setWorldTransform(const btTransform& worldTrans) override; 111 v oid getWorldTransform(btTransform& worldTrans) const override;111 virtual void getWorldTransform(btTransform& worldTrans) const override; 112 112 113 113 Vector3 linearAcceleration_; -
code/branches/cpp11_v2/src/orxonox/worldentities/MovableEntity.h
r10817 r10845 52 52 using WorldEntity::setOrientation; 53 53 54 inline void setPosition(const Vector3& position) override54 virtual inline void setPosition(const Vector3& position) override 55 55 { MobileEntity::setPosition(position); this->overwrite_position_ = this->getPosition(); } 56 inline void setOrientation(const Quaternion& orientation) override56 virtual inline void setOrientation(const Quaternion& orientation) override 57 57 { MobileEntity::setOrientation(orientation); this->overwrite_orientation_ = this->getOrientation(); } 58 58 … … 79 79 private: 80 80 void registerVariables(); 81 v oid clientConnected(unsigned int clientID) override;82 v oid clientDisconnected(unsigned int clientID) override;81 virtual void clientConnected(unsigned int clientID) override; 82 virtual void clientDisconnected(unsigned int clientID) override; 83 83 void resynchronize(); 84 84 -
code/branches/cpp11_v2/src/orxonox/worldentities/StaticEntity.h
r10817 r10845 55 55 using WorldEntity::setOrientation; 56 56 57 v oid setPosition(const Vector3& position) override;58 v oid setOrientation(const Quaternion& orientation) override;57 virtual void setPosition(const Vector3& position) override; 58 virtual void setOrientation(const Quaternion& orientation) override; 59 59 60 60 private: 61 61 void registerVariables(); 62 bool isCollisionTypeLegal(CollisionType type) const override;62 virtual bool isCollisionTypeLegal(CollisionType type) const override; 63 63 64 64 // network callbacks … … 69 69 70 70 // Bullet btMotionState related 71 v oid setWorldTransform(const btTransform& worldTrans) override;72 v oid getWorldTransform(btTransform& worldTrans) const override;71 virtual void setWorldTransform(const btTransform& worldTrans) override; 72 virtual void getWorldTransform(btTransform& worldTrans) const override; 73 73 }; 74 74 } -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/FpsPlayer.h
r10818 r10845 69 69 virtual void fire(); 70 70 71 bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override;71 virtual 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.