Changeset 10817 for code/branches/cpp11_v2/src
- Timestamp:
- Nov 19, 2015, 11:40:28 AM (9 years ago)
- Location:
- code/branches/cpp11_v2/src
- Files:
-
- 318 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/ConfigurablePaths.cc
r10769 r10817 54 54 #include "util/Exception.h" 55 55 #include "commandline/CommandLineIncludes.h" 56 #include "core/ApplicationPaths.h" 56 57 57 58 // Differentiate Boost Filesystem v2 and v3 -
code/branches/cpp11_v2/src/libraries/core/Core.h
r10624 r10817 45 45 46 46 #include <string> 47 #include <list> 47 48 #include "util/DestructionHelper.h" 48 49 #include "util/Singleton.h" -
code/branches/cpp11_v2/src/libraries/core/CoreIncludes.h
r10765 r10817 221 221 struct InheritsFromClass : public Identifier::InheritsFrom 222 222 { 223 virtual Identifier* getParent() const { return Class(T); }223 virtual Identifier* getParent() const override { return Class(T); } 224 224 }; 225 225 … … 231 231 ~StaticallyInitializedIdentifier() { delete identifier_; } 232 232 233 virtual void load() 233 virtual void load() override 234 234 { 235 235 IdentifierManager::getInstance().addIdentifier(this->identifier_); 236 236 } 237 237 238 virtual void unload() 238 virtual void unload() override 239 239 { 240 240 IdentifierManager::getInstance().removeIdentifier(this->identifier_); -
code/branches/cpp11_v2/src/libraries/core/CoreStaticInitializationHandler.h
r10624 r10817 43 43 CoreStaticInitializationHandler() : bInitInstances_(false) {} 44 44 45 virtual void setupHandler() ;46 virtual void shutdownHandler() ;45 virtual void setupHandler() override; 46 virtual void shutdownHandler() override; 47 47 48 virtual void loadModule(ModuleInstance* module) ;49 virtual void unloadModule(ModuleInstance* module) ;48 virtual void loadModule(ModuleInstance* module) override; 49 virtual void unloadModule(ModuleInstance* module) override; 50 50 51 51 inline void setInitInstances(bool bInitInstances) -
code/branches/cpp11_v2/src/libraries/core/GUIManager.cc
r10775 r10817 124 124 { 125 125 public: 126 void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard) 126 void logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level = CEGUI::Standard) override 127 127 { 128 128 OutputLevel orxonoxLevel = level::debug_output; … … 143 143 144 144 /// Carbon copy from CEGUIDefaultLogger.cpp with a bugfix for Windows 145 void setLogFilename(const CEGUI::String& filename, bool append = false) 145 void setLogFilename(const CEGUI::String& filename, bool append = false) override 146 146 { 147 147 // Close current log file (if any) … … 228 228 public: 229 229 /// Callback from Ogre invoked before other stuff in our target queue is rendered 230 void renderQueueStarted(Ogre::uint8 id, const Ogre::String& invocation, bool& skipThisQueue) 230 void renderQueueStarted(Ogre::uint8 id, const Ogre::String& invocation, bool& skipThisQueue) override 231 231 { 232 232 if (id == Ogre::RENDER_QUEUE_OVERLAY && invocation.empty()) -
code/branches/cpp11_v2/src/libraries/core/GUIManager.h
r10771 r10817 169 169 170 170 // keyHandler functions 171 void buttonPressed (const KeyEvent& evt) ;172 void buttonReleased(const KeyEvent& evt) ;171 void buttonPressed (const KeyEvent& evt) override; 172 void buttonReleased(const KeyEvent& evt) override; 173 173 174 174 // mouseHandler functions 175 void buttonPressed (MouseButtonCode::ByEnum id) ;176 void buttonReleased(MouseButtonCode::ByEnum id) ;177 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) ;178 void mouseScrolled (int abs, int rel) ;175 void buttonPressed (MouseButtonCode::ByEnum id) override; 176 void buttonReleased(MouseButtonCode::ByEnum id) override; 177 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override; 178 void mouseScrolled (int abs, int rel) override; 179 179 void mouseLeft (); 180 180 181 181 // window event handler 182 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) ;183 virtual void windowFocusChanged(bool bFocus) ;182 virtual void windowResized(unsigned int newWidth, unsigned int newHeight) override; 183 virtual void windowFocusChanged(bool bFocus) override; 184 184 185 185 #ifdef ORXONOX_OLD_CEGUI -
code/branches/cpp11_v2/src/libraries/core/Game.h
r10772 r10817 135 135 { 136 136 public: 137 std::shared_ptr<GameState> fabricateInternal(const GameStateInfo& info) 137 std::shared_ptr<GameState> fabricateInternal(const GameStateInfo& info) override 138 138 { return std::shared_ptr<GameState>(std::make_shared<T>(info)); } 139 139 }; -
code/branches/cpp11_v2/src/libraries/core/GraphicsManager.cc
r10771 r10817 82 82 { 83 83 public: 84 void windowResized (Ogre::RenderWindow* rw) 84 void windowResized (Ogre::RenderWindow* rw) override 85 85 { orxonox::WindowEventListener::resizeWindow(rw->getWidth(), rw->getHeight()); } 86 void windowFocusChange (Ogre::RenderWindow* rw) 86 void windowFocusChange (Ogre::RenderWindow* rw) override 87 87 { orxonox::WindowEventListener::changeWindowFocus(rw->isActive()); } 88 void windowClosed (Ogre::RenderWindow* rw) 88 void windowClosed (Ogre::RenderWindow* rw) override 89 89 { orxonox::Game::getInstance().stop(); } 90 void windowMoved (Ogre::RenderWindow* rw) 90 void windowMoved (Ogre::RenderWindow* rw) override 91 91 { orxonox::WindowEventListener::moveWindow(); } 92 92 }; -
code/branches/cpp11_v2/src/libraries/core/GraphicsManager.h
r10771 r10817 111 111 // event from Ogre::LogListener 112 112 #if OGRE_VERSION >= 0x010800 113 void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage) ;113 void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName, bool& skipThisMessage) override; 114 114 #else 115 115 void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, bool maskDebug, const std::string& logName); -
code/branches/cpp11_v2/src/libraries/core/LuaState.cc
r10771 r10817 33 33 extern "C" { 34 34 #include <lua.h> 35 #include <lualib.h> 35 #include <lualib.h> 36 36 } 37 37 #include <loki/ScopeGuard.h> -
code/branches/cpp11_v2/src/libraries/core/Namespace.h
r9667 r10817 50 50 virtual ~Namespace(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 53 54 54 void loadObjects(BaseObject* object); -
code/branches/cpp11_v2/src/libraries/core/Template.h
r9667 r10817 54 54 virtual ~Template(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void changedName() ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void changedName() override; 58 58 59 59 inline void setLink(const std::string& link) -
code/branches/cpp11_v2/src/libraries/core/XMLPort.h
r10768 r10817 459 459 } 460 460 461 virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param) 461 virtual XMLPortParamContainer& defaultValue(unsigned int index, const MultiType& param) override 462 462 { 463 463 if (!this->loadexecutor_->defaultValueSet(index)) … … 465 465 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 466 466 } 467 virtual XMLPortParamContainer& defaultValues(const MultiType& param1) 467 virtual XMLPortParamContainer& defaultValues(const MultiType& param1) override 468 468 { 469 469 if (!this->loadexecutor_->defaultValueSet(0)) … … 471 471 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 472 472 } 473 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2) 473 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2) override 474 474 { 475 475 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1))) … … 477 477 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 478 478 } 479 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3) 479 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3) override 480 480 { 481 481 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2))) … … 483 483 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 484 484 } 485 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4) 485 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4) override 486 486 { 487 487 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2)) || (!this->loadexecutor_->defaultValueSet(3))) … … 489 489 return this->portIfWaitingForDefaultValues(this->parseResult_, this->parseParams_); 490 490 } 491 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5) 491 virtual XMLPortParamContainer& defaultValues(const MultiType& param1, const MultiType& param2, const MultiType& param3, const MultiType& param4, const MultiType& param5) override 492 492 { 493 493 if ((!this->loadexecutor_->defaultValueSet(0)) || (!this->loadexecutor_->defaultValueSet(1)) || (!this->loadexecutor_->defaultValueSet(2)) || (!this->loadexecutor_->defaultValueSet(3)) || (!this->loadexecutor_->defaultValueSet(4))) … … 556 556 } 557 557 558 void callLoadExecutor(BaseObject* object, BaseObject* newObject) 558 void callLoadExecutor(BaseObject* object, BaseObject* newObject) override 559 559 { 560 560 T* castObject = orxonox_cast<T*>(object); -
code/branches/cpp11_v2/src/libraries/core/class/Identifier.h
r10774 r10817 289 289 bool initializeObject(T* object); 290 290 291 virtual void updateConfigValues(bool updateChildren = true) const ;292 293 virtual const std::type_info& getTypeInfo() 291 virtual void updateConfigValues(bool updateChildren = true) const override; 292 293 virtual const std::type_info& getTypeInfo() override 294 294 { return typeid(T); } 295 295 296 virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const 296 virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const override 297 297 { return dynamic_cast<T*>(object) != nullptr; } 298 298 299 virtual void destroyObjects() ;299 virtual void destroyObjects() override; 300 300 301 301 static ClassIdentifier<T>* getIdentifier(); -
code/branches/cpp11_v2/src/libraries/core/class/Super.h
r10768 r10817 584 584 // Creates the super-function-callers by calling the first SuperFunctionCondition check 585 585 // This get's called within the initialization of an Identifier 586 virtual void createSuperFunctionCaller() const 586 virtual void createSuperFunctionCaller() const override 587 587 { 588 588 SuperFunctionCondition<0, T, 0, 0>::superCheck(); -
code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandIncludes.h
r10765 r10817 316 316 ~StaticallyInitializedConsoleCommand() { delete command_; } 317 317 318 virtual void load() ;319 virtual void unload() ;318 virtual void load() override; 319 virtual void unload() override; 320 320 321 321 inline ConsoleCommand& getCommand() -
code/branches/cpp11_v2/src/libraries/core/command/ConsoleCommandManager.h
r10769 r10817 38 38 39 39 #include "util/Singleton.h" 40 41 #include <map> 40 42 41 43 namespace orxonox -
code/branches/cpp11_v2/src/libraries/core/command/Functor.h
r10768 r10817 249 249 250 250 // see Functor::operator()() 251 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) 251 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override 252 252 { 253 253 // call the function if an object was assigned … … 262 262 263 263 // see Functor::getType() 264 inline Functor::Type::Enum getType() const 264 inline Functor::Type::Enum getType() const override 265 265 { return Functor::Type::Member; } 266 266 … … 280 280 281 281 // see Functor::setRawObjectPointer() 282 inline void setRawObjectPointer(void* object) 282 inline void setRawObjectPointer(void* object) override 283 283 { this->setObject((O*)object); } 284 284 // see Functor::getRawObjectPointer() 285 inline void* getRawObjectPointer() const 285 inline void* getRawObjectPointer() const override 286 286 { return this->object_; } 287 287 288 288 // see Functor::setSafeMode() 289 inline void setSafeMode(bool bSafeMode) 289 inline void setSafeMode(bool bSafeMode) override 290 290 { 291 291 if (bSafeMode == this->bSafeMode_) … … 309 309 310 310 /// Will be called by Destroyable::~Destroyable() if the stored object is deleted and the Functor is in safe mode. 311 inline void objectDeleted() 311 inline void objectDeleted() override 312 312 { this->object_ = nullptr; } 313 313 … … 328 328 329 329 // see Functor::operator()() 330 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) 330 MultiType operator()(const MultiType& param1 = MultiType::Null, const MultiType& param2 = MultiType::Null, const MultiType& param3 = MultiType::Null, const MultiType& param4 = MultiType::Null, const MultiType& param5 = MultiType::Null) override 331 331 { 332 332 return (*this)((void*)nullptr, param1, param2, param3, param4, param5); … … 334 334 335 335 // see Functor::getType() 336 inline Functor::Type::Enum getType() const 336 inline Functor::Type::Enum getType() const override 337 337 { return Functor::Type::Static; } 338 338 339 339 // see Functor::setRawObjectPointer() 340 inline void setRawObjectPointer(void*) 340 inline void setRawObjectPointer(void*) override 341 341 { orxout(internal_warning) << "Can't assign an object pointer to a static functor" << endl; } 342 342 // see Functor::getRawObjectPointer() 343 inline void* getRawObjectPointer() const 343 inline void* getRawObjectPointer() const override 344 344 { return nullptr; } 345 345 346 346 // see Functor::setSafeMode() 347 inline void setSafeMode(bool) {}347 inline void setSafeMode(bool) override {} 348 348 }; 349 349 -
code/branches/cpp11_v2/src/libraries/core/command/IOConsolePOSIX.h
r8858 r10817 65 65 66 66 // Methods from ShellListener 67 void linesChanged() ;68 void lineAdded() ;69 void inputChanged() ;70 void cursorChanged() ;71 void executed() ;72 void exit() ;67 void linesChanged() override; 68 void lineAdded() override; 69 void inputChanged() override; 70 void cursorChanged() override; 71 void executed() override; 72 void exit() override; 73 73 74 74 bool willPrintStatusLines(); -
code/branches/cpp11_v2/src/libraries/core/command/IOConsoleWindows.h
r9676 r10817 67 67 68 68 // Methods from ShellListener 69 void linesChanged() ;70 void lineAdded() ;71 void inputChanged() ;72 void cursorChanged() ;73 void executed() ;74 void exit() ;69 void linesChanged() override; 70 void lineAdded() override; 71 void inputChanged() override; 72 void cursorChanged() override; 73 void executed() override; 74 void exit() override; 75 75 76 76 void resetTerminalMode(); -
code/branches/cpp11_v2/src/libraries/core/command/Shell.h
r10769 r10817 151 151 152 152 // DevModeListener 153 void devModeChanged(bool value) ;153 void devModeChanged(bool value) override; 154 154 155 155 void addToHistory(const std::string& command); … … 157 157 void clearInput(); 158 158 // BaseWriter 159 virtual void printLine(const std::string& line, OutputLevel level) ;159 virtual void printLine(const std::string& line, OutputLevel level) override; 160 160 161 161 void configureInputBuffer(); -
code/branches/cpp11_v2/src/libraries/core/commandline/CommandLineIncludes.h
r10535 r10817 64 64 ~StaticallyInitializedCommandLineArgument() { delete argument_; } 65 65 66 virtual void load() 66 virtual void load() override 67 67 { CommandLineParser::addArgument(this->argument_); } 68 68 69 virtual void unload() 69 virtual void unload() override 70 70 { CommandLineParser::removeArgument(this->argument_); } 71 71 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFile.cc
r10768 r10817 38 38 #include <iterator> 39 39 #include <algorithm> 40 #include <fstream> 40 41 41 42 #include "util/Convert.h" -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryComment.h
r9559 r10817 56 56 inline virtual ~ConfigFileEntryComment() {} 57 57 58 inline virtual const std::string& getName() const 58 inline virtual const std::string& getName() const override 59 59 { return this->comment_; } 60 60 61 inline virtual void setComment(const std::string& comment) 61 inline virtual void setComment(const std::string& comment) override 62 62 { this->comment_ = comment; } 63 63 64 inline virtual void setValue(const std::string& value) 64 inline virtual void setValue(const std::string& value) override 65 65 {} 66 inline virtual const std::string& getValue() const 66 inline virtual const std::string& getValue() const override 67 67 { return BLANKSTRING; } 68 68 69 inline void setString(bool bString) 69 inline void setString(bool bString) override 70 70 {} 71 71 72 inline virtual const std::string& getFileEntry() const 72 inline virtual const std::string& getFileEntry() const override 73 73 { return this->comment_; } 74 74 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryValue.h
r9684 r10817 69 69 inline virtual ~ConfigFileEntryValue() {} 70 70 71 inline virtual const std::string& getName() const 71 inline virtual const std::string& getName() const override 72 72 { return this->name_; } 73 73 74 inline virtual void setComment(const std::string& comment) 74 inline virtual void setComment(const std::string& comment) override 75 75 { this->additionalComment_ = comment; this->update(); } 76 76 77 inline virtual void setValue(const std::string& value) 77 inline virtual void setValue(const std::string& value) override 78 78 { this->value_ = value; this->update(); } 79 inline virtual const std::string& getValue() const 79 inline virtual const std::string& getValue() const override 80 80 { return this->value_; } 81 81 82 inline void virtual setString(bool bString) 82 inline void virtual setString(bool bString) override 83 83 { this->bString_ = bString; this->update(); } 84 84 85 inline virtual const std::string& getFileEntry() const 85 inline virtual const std::string& getFileEntry() const override 86 86 { return this->fileEntry_; } 87 87 -
code/branches/cpp11_v2/src/libraries/core/config/ConfigFileEntryVectorValue.h
r9559 r10817 67 67 inline ~ConfigFileEntryVectorValue() {} 68 68 69 inline unsigned int getIndex() const 69 inline unsigned int getIndex() const override 70 70 { return this->index_; } 71 71 72 72 /// Returns the "key" of the value (the name of the vector plus the index of the element) 73 inline const std::string& getKeyString() const 73 inline const std::string& getKeyString() const override 74 74 { return this->keyString_; } 75 75 76 76 private: 77 void update() ;77 void update() override; 78 78 79 79 unsigned int index_; ///< The index of the element in the vector -
code/branches/cpp11_v2/src/libraries/core/config/ConfigValueContainer.h
r10765 r10817 68 68 inline ConfigValueCallback(void (T::*function) (void)) : function_(function) {} 69 69 inline virtual ~ConfigValueCallback() {} 70 inline virtual void call(void* object) 70 inline virtual void call(void* object) override 71 71 { 72 72 if (!IdentifierManager::getInstance().isCreatingHierarchy()) -
code/branches/cpp11_v2/src/libraries/core/input/HalfAxis.h
r10768 r10817 56 56 using Button::execute; 57 57 bool execute(); 58 bool addParamCommand(ParamCommand* command) ;59 void clear() ;58 bool addParamCommand(ParamCommand* command) override; 59 void clear() override; 60 60 void reset(); 61 61 -
code/branches/cpp11_v2/src/libraries/core/input/InputBuffer.h
r9667 r10817 66 66 { } 67 67 virtual ~InputBufferListenerTuple() { } 68 void callFunction() 68 void callFunction() override 69 69 { 70 70 (listener_->*function_)(); … … 165 165 { if (this->cursor_ > 0) { --this->cursor_; } } 166 166 167 void buttonPressed(const KeyEvent& evt) ;167 void buttonPressed(const KeyEvent& evt) override; 168 168 169 169 private: 170 170 bool charIsAllowed(const char& input); 171 171 172 void buttonHeld (const KeyEvent& evt) ;172 void buttonHeld (const KeyEvent& evt) override; 173 173 void processKey (const KeyEvent& evt); 174 174 175 void keyboardUpdated(float dt) ;175 void keyboardUpdated(float dt) override; 176 176 177 177 std::string buffer_; -
code/branches/cpp11_v2/src/libraries/core/input/InputCommands.h
r10768 r10817 76 76 { 77 77 public: 78 bool execute(float abs = 1.0f, float rel = 1.0f) ;79 CommandEvaluation* getEvaluation() ;80 virtual SimpleCommand* clone() { return new SimpleCommand(*this); }78 bool execute(float abs = 1.0f, float rel = 1.0f) override; 79 CommandEvaluation* getEvaluation() override; 80 virtual SimpleCommand* clone() override { return new SimpleCommand(*this); } 81 81 82 82 CommandEvaluation evaluation_; … … 104 104 public: 105 105 ParamCommand() : scale_(1.0f), paramCommand_(nullptr) { } 106 bool execute(float abs = 1.0f, float rel = 1.0f) ;107 CommandEvaluation* getEvaluation() ;108 virtual ParamCommand* clone() { return new ParamCommand(*this); }106 bool execute(float abs = 1.0f, float rel = 1.0f) override; 107 CommandEvaluation* getEvaluation() override; 108 virtual ParamCommand* clone() override { return new ParamCommand(*this); } 109 109 110 110 float scale_; -
code/branches/cpp11_v2/src/libraries/core/input/InputDevice.h
r8858 r10817 153 153 154 154 //! Captures OIS events (which then get distributed to the derived class) and creates the button held events 155 void update(const Clock& time) 155 void update(const Clock& time) override 156 156 { 157 157 oisDevice_->capture(); … … 160 160 for (unsigned int iB = 0; iB < pressedButtons_.size(); ++iB) 161 161 for (unsigned int iS = 0; iS < inputStates_.size(); ++iS) 162 inputStates_[iS]-> buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>(162 inputStates_[iS]->template buttonEvent<ButtonEvent::THold, typename Traits::ButtonTypeParam>( 163 163 this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(pressedButtons_[iB])); 164 164 … … 171 171 172 172 //! Clears the list of pressed buttons and calls the derived class's method 173 void clearBuffers() 173 void clearBuffers() override 174 174 { 175 175 pressedButtons_.clear(); … … 180 180 OISDeviceClass* getOISDevice() { return this->oisDevice_; } 181 181 // Returns the name of the derived class as string 182 std::string getClassName() const { return DeviceClass::getClassNameImpl(); }182 std::string getClassName() const override { return DeviceClass::getClassNameImpl(); } 183 183 184 184 protected: … … 197 197 // Call states 198 198 for (unsigned int i = 0; i < inputStates_.size(); ++i) 199 inputStates_[i]-> buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));199 inputStates_[i]->template buttonEvent<ButtonEvent::TPress, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 200 200 } 201 201 … … 219 219 // Call states 220 220 for (unsigned int i = 0; i < inputStates_.size(); ++i) 221 inputStates_[i]-> buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button));221 inputStates_[i]->template buttonEvent<ButtonEvent::TRelease, typename Traits::ButtonTypeParam>(this->getDeviceID(), static_cast<DeviceClass*>(this)->getButtonEventArg(button)); 222 222 } 223 223 -
code/branches/cpp11_v2/src/libraries/core/input/InputManager.h
r10775 r10817 208 208 209 209 // From WindowEventListener 210 void windowFocusChanged(bool bFocus) ;210 void windowFocusChanged(bool bFocus) override; 211 211 212 212 private: // variables -
code/branches/cpp11_v2/src/libraries/core/input/InputState.h
r10775 r10817 157 157 ~InputState() { } 158 158 159 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) ;159 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 160 160 161 161 //! Sets the priority (only to be used by the InputManager!) -
code/branches/cpp11_v2/src/libraries/core/input/JoyStick.h
r9667 r10817 77 77 78 78 private: 79 void calibrationStarted() ;80 void calibrationStopped() ;79 void calibrationStarted() override; 80 void calibrationStopped() override; 81 81 void evaluateCalibration(); 82 82 … … 86 86 87 87 //! OIS event handler 88 bool buttonPressed (const OIS::JoyStickEvent &arg, int button) 88 bool buttonPressed (const OIS::JoyStickEvent &arg, int button) override 89 89 { 90 90 super::buttonPressed(static_cast<JoyStickButtonCode::ByEnum>(button)); … … 93 93 94 94 //! OIS event handler 95 bool buttonReleased(const OIS::JoyStickEvent &arg, int button) 95 bool buttonReleased(const OIS::JoyStickEvent &arg, int button) override 96 96 { 97 97 super::buttonReleased(static_cast<JoyStickButtonCode::ByEnum>(button)); … … 99 99 } 100 100 101 bool axisMoved (const OIS::JoyStickEvent &arg, int axis) ;102 bool sliderMoved (const OIS::JoyStickEvent &arg, int id) ;103 bool povMoved (const OIS::JoyStickEvent &arg, int id) ;101 bool axisMoved (const OIS::JoyStickEvent &arg, int axis) override; 102 bool sliderMoved (const OIS::JoyStickEvent &arg, int id) override; 103 bool povMoved (const OIS::JoyStickEvent &arg, int id) override; 104 104 //! OIS event handler (don't remove that because of OIS version issues!) 105 bool vector3Moved (const OIS::JoyStickEvent &arg, int id) { return true; }105 bool vector3Moved (const OIS::JoyStickEvent &arg, int id) override { return true; } 106 106 107 107 //! Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/input/KeyBinder.h
r10771 r10817 84 84 void compilePointerLists(); 85 85 // from JoyStickQuantityListener interface 86 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) ;87 88 void allDevicesUpdated(float dt) ;89 void mouseUpdated(float dt) ;90 void joyStickUpdated(unsigned int joyStick, float dt) ;86 virtual void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 87 88 void allDevicesUpdated(float dt) override; 89 void mouseUpdated(float dt) override; 90 void joyStickUpdated(unsigned int joyStick, float dt) override; 91 91 // internal 92 92 void tickHalfAxis(HalfAxis& halfAxis); 93 93 94 void buttonPressed (const KeyEvent& evt) ;95 void buttonReleased(const KeyEvent& evt) ;96 void buttonHeld (const KeyEvent& evt) ;97 98 void buttonPressed (MouseButtonCode::ByEnum button) ;99 void buttonReleased(MouseButtonCode::ByEnum button) ;100 void buttonHeld (MouseButtonCode::ByEnum button) ;101 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) ;102 void mouseScrolled (int abs, int rel) ;103 104 void buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button) ;105 void buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button) ;106 void buttonHeld (unsigned int device, JoyStickButtonCode::ByEnum button) ;107 void axisMoved (unsigned int device, unsigned int axis, float value) ;94 void buttonPressed (const KeyEvent& evt) override; 95 void buttonReleased(const KeyEvent& evt) override; 96 void buttonHeld (const KeyEvent& evt) override; 97 98 void buttonPressed (MouseButtonCode::ByEnum button) override; 99 void buttonReleased(MouseButtonCode::ByEnum button) override; 100 void buttonHeld (MouseButtonCode::ByEnum button) override; 101 void mouseMoved (IntVector2 abs, IntVector2 rel, IntVector2 clippingSize) override; 102 void mouseScrolled (int abs, int rel) override; 103 104 void buttonPressed (unsigned int device, JoyStickButtonCode::ByEnum button) override; 105 void buttonReleased(unsigned int device, JoyStickButtonCode::ByEnum button) override; 106 void buttonHeld (unsigned int device, JoyStickButtonCode::ByEnum button) override; 107 void axisMoved (unsigned int device, unsigned int axis, float value) override; 108 108 109 109 protected: // variables -
code/branches/cpp11_v2/src/libraries/core/input/KeyDetector.h
r8729 r10817 51 51 52 52 void callback(const std::string& name); 53 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) ;53 void JoyStickQuantityChanged(const std::vector<JoyStick*>& joyStickList) override; 54 54 void assignCommands(); 55 55 -
code/branches/cpp11_v2/src/libraries/core/input/Keyboard.h
r8729 r10817 75 75 } 76 76 77 bool keyPressed(const OIS::KeyEvent& arg) ;78 bool keyReleased(const OIS::KeyEvent& arg) ;77 bool keyPressed(const OIS::KeyEvent& arg) override; 78 bool keyReleased(const OIS::KeyEvent& arg) override; 79 79 80 80 //! Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/input/Mouse.h
r7809 r10817 74 74 private: 75 75 //! OIS event handler 76 bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id) 76 bool mousePressed(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override 77 77 { 78 78 super::buttonPressed(static_cast<MouseButtonCode::ByEnum>(id)); … … 81 81 82 82 //! OIS event handler 83 bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id) 83 bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id) override 84 84 { 85 85 super::buttonReleased(static_cast<MouseButtonCode::ByEnum>(id)); … … 87 87 } 88 88 89 bool mouseMoved(const OIS::MouseEvent &arg) ;89 bool mouseMoved(const OIS::MouseEvent &arg) override; 90 90 91 void windowResized(unsigned int newWidth, unsigned int newHeight) ;91 void windowResized(unsigned int newWidth, unsigned int newHeight) override; 92 92 93 93 // Returns the class name as string -
code/branches/cpp11_v2/src/libraries/core/module/StaticInitializationHandlerIncludes.h
r10535 r10817 53 53 ~StaticallyInitializedStaticInitializationHandler() { delete handler_; } 54 54 55 virtual void load() ;56 virtual void unload() ;55 virtual void load() override; 56 virtual void unload() override; 57 57 58 58 inline StaticInitializationHandler& getHandler() -
code/branches/cpp11_v2/src/libraries/core/object/DestroyLaterManager.h
r10769 r10817 45 45 virtual ~DestroyLaterManager(); 46 46 47 virtual void preUpdate(const Clock& time) { /*no action*/ }48 virtual void postUpdate(const Clock& time) ;47 virtual void preUpdate(const Clock& time) override { /*no action*/ } 48 virtual void postUpdate(const Clock& time) override; 49 49 50 50 void retain(Destroyable* instance) -
code/branches/cpp11_v2/src/libraries/core/object/IteratorBase.h
r10774 r10817 175 175 @param object The object to compare with 176 176 */ 177 virtual void removedElement(ObjectListBaseElement* element) 177 virtual void removedElement(ObjectListBaseElement* element) override 178 178 { 179 179 if (this->element_ == element) -
code/branches/cpp11_v2/src/libraries/core/object/ObjectListBase.h
r10768 r10817 82 82 ObjectListElement(T* object) : ObjectListBaseElement(static_cast<Listable*>(object)), object_(object) {} 83 83 84 virtual void changeContext(Context* oldContext, Context* newContext) 84 virtual void changeContext(Context* oldContext, Context* newContext) override 85 85 { 86 86 // add object to new context, but only if this element belongs exactly to the old context (and not to a sub-context to avoid re-adding objects -
code/branches/cpp11_v2/src/libraries/core/object/WeakPtr.h
r10770 r10817 230 230 private: 231 231 /// Will be called by Destroyable::~Destroyable() if the stored object is deleted. Resets the wrapped pointer and executes the callback. 232 inline void objectDeleted() 232 inline void objectDeleted() override 233 233 { 234 234 this->base_ = nullptr; -
code/branches/cpp11_v2/src/libraries/core/singleton/ScopedSingletonIncludes.h
r10765 r10817 87 87 ~StaticallyInitializedScopedSingletonWrapper() { delete wrapper_; } 88 88 89 virtual void load() ;90 virtual void unload() ;89 virtual void load() override; 90 virtual void unload() override; 91 91 92 92 inline ScopedSingletonWrapper& getWrapper() -
code/branches/cpp11_v2/src/libraries/core/singleton/ScopedSingletonWrapper.h
r10765 r10817 102 102 103 103 //! Called if the Scope of the Singleton gets active (creates the instance) 104 void activated() 104 void activated() override 105 105 { 106 106 assert(singletonPtr_ == nullptr); … … 109 109 110 110 //! Called if the Scope of this Singleton gets deactivated (destroys the instance) 111 void deactivated() 111 void deactivated() override 112 112 { 113 113 assert(singletonPtr_ != nullptr); … … 157 157 158 158 //! Called if the Scope of the Singleton gets active (creates the instance) 159 void activated() 159 void activated() override 160 160 { 161 161 assert(singletonPtr_ == nullptr); … … 169 169 170 170 //! Called if the Scope of this Singleton gets deactivated (destroys the instance) 171 void deactivated() 171 void deactivated() override 172 172 { 173 173 if (singletonPtr_ != nullptr) -
code/branches/cpp11_v2/src/libraries/network/Client.h
r8858 r10817 76 76 static Client* getInstance(){ return singletonPtr_s; } // tolua_export 77 77 78 bool establishConnection() ;78 bool establishConnection() override; 79 79 void setDestination( const std::string& serverAddress, unsigned int port ); // tolua_export 80 bool closeConnection() ;81 void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) ;82 virtual bool sendPacket( packet::Packet* packet ) { return packet->send( static_cast<Host*>(this) ); }83 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;84 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;85 virtual void printRTT() ;80 bool closeConnection() override; 81 void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) override; 82 virtual bool sendPacket( packet::Packet* packet ) override{ return packet->send( static_cast<Host*>(this) ); } 83 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 84 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 85 virtual void printRTT() override; 86 86 87 87 void update(const Clock& time); 88 88 protected: 89 virtual void connectionClosed() ;89 virtual void connectionClosed() override; 90 90 private: 91 91 Client(const Client& copy); // not used 92 virtual bool isServer_() {return false;}93 void processPacket(packet::Packet* packet) ;92 virtual bool isServer_() override{return false;} 93 void processPacket(packet::Packet* packet) override; 94 94 95 95 static Client* singletonPtr_s; -
code/branches/cpp11_v2/src/libraries/network/ClientConnection.h
r8327 r10817 57 57 uint32_t getRTT(); 58 58 private: 59 virtual void addPeer(uint32_t peerID) ;60 virtual void removePeer(uint32_t peerID) ;59 virtual void addPeer(uint32_t peerID) override; 60 virtual void removePeer(uint32_t peerID) override; 61 61 62 62 bool disconnectConnection(); -
code/branches/cpp11_v2/src/libraries/network/GamestateManager.h
r10774 r10817 83 83 ~GamestateManager(); 84 84 85 virtual bool addGamestate(packet::Gamestate *gs, unsigned int peerID) ;86 virtual bool ackGamestate(unsigned int gamestateID, unsigned int peerID) ;87 virtual uint32_t getLastReceivedGamestateID( unsigned int peerID ) ;88 virtual uint32_t getCurrentGamestateID() { if( currentGamestate_) return currentGamestate_->getID(); else return GAMESTATEID_INITIAL; }85 virtual bool addGamestate(packet::Gamestate *gs, unsigned int peerID) override; 86 virtual bool ackGamestate(unsigned int gamestateID, unsigned int peerID) override; 87 virtual uint32_t getLastReceivedGamestateID( unsigned int peerID ) override; 88 virtual uint32_t getCurrentGamestateID() override{ if( currentGamestate_) return currentGamestate_->getID(); else return GAMESTATEID_INITIAL; } 89 89 90 90 bool processGamestates(); -
code/branches/cpp11_v2/src/libraries/network/LANDiscoverable.cc
r10768 r10817 109 109 { 110 110 case ENET_EVENT_TYPE_CONNECT: 111 orxout(verbose, context::network) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << endl;111 //orxout(verbose, context::network) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << endl; 112 112 break; 113 113 case ENET_EVENT_TYPE_DISCONNECT: … … 117 117 if( strcmp( LAN_DISCOVERY_MESSAGE, (char*)event.packet->data ) == 0 ) // check for a suitable orxonox client 118 118 { 119 orxout(internal_info, context::network) << "Received LAN discovery message from client " << event.peer->host->receivedAddress << endl;119 //orxout(internal_info, context::network) << "Received LAN discovery message from client " << event.peer->host->receivedAddress << endl; 120 120 packet::ServerInformation info; 121 121 info.setServerName(this->ownName); -
code/branches/cpp11_v2/src/libraries/network/NetworkFunction.h
r10768 r10817 114 114 115 115 // ignore the objectID because its a static function 116 virtual bool call(uint32_t objectID) { (*this->functor_)(); return true; }117 virtual bool call(uint32_t objectID, const MultiType& mt1) { (*this->functor_)(mt1); return true; }118 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) { (*this->functor_)(mt1, mt2); return true; }119 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) { (*this->functor_)(mt1, mt2, mt3); return true; }120 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) { (*this->functor_)(mt1, mt2, mt3, mt4); return true; }121 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) { (*this->functor_)(mt1, mt2, mt3, mt4, mt5); return true; }116 virtual bool call(uint32_t objectID) override{ (*this->functor_)(); return true; } 117 virtual bool call(uint32_t objectID, const MultiType& mt1) override{ (*this->functor_)(mt1); return true; } 118 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) override{ (*this->functor_)(mt1, mt2); return true; } 119 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) override{ (*this->functor_)(mt1, mt2, mt3); return true; } 120 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) override{ (*this->functor_)(mt1, mt2, mt3, mt4); return true; } 121 virtual bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) override{ (*this->functor_)(mt1, mt2, mt3, mt4, mt5); return true; } 122 122 123 123 private: … … 142 142 { } 143 143 144 inline bool call(uint32_t objectID) 144 inline bool call(uint32_t objectID) override 145 145 { 146 146 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 152 152 return false; 153 153 } 154 inline bool call(uint32_t objectID, const MultiType& mt1) 154 inline bool call(uint32_t objectID, const MultiType& mt1) override 155 155 { 156 156 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 162 162 return false; 163 163 } 164 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) 164 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2) override 165 165 { 166 166 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 172 172 return false; 173 173 } 174 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) 174 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3) override 175 175 { 176 176 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 182 182 return false; 183 183 } 184 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) 184 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4) override 185 185 { 186 186 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) … … 192 192 return false; 193 193 } 194 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) 194 inline bool call(uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5) override 195 195 { 196 196 if ( Synchronisable::getSynchronisable(objectID)!=nullptr ) -
code/branches/cpp11_v2/src/libraries/network/NetworkFunctionIncludes.h
r10774 r10817 56 56 ~StaticallyInitializedNetworkFunction() { delete function_; } 57 57 58 virtual void load() ;59 virtual void unload() ;58 virtual void load() override; 59 virtual void unload() override; 60 60 61 61 inline NetworkFunctionBase& getFunction() -
code/branches/cpp11_v2/src/libraries/network/NetworkStaticInitializationHandler.h
r10624 r10817 39 39 { 40 40 public: 41 virtual void setupHandler() ;42 virtual void shutdownHandler() ;41 virtual void setupHandler() override; 42 virtual void shutdownHandler() override; 43 43 44 virtual void loadModule(ModuleInstance* module) ;45 virtual void unloadModule(ModuleInstance* module) ;44 virtual void loadModule(ModuleInstance* module) override; 45 virtual void unloadModule(ModuleInstance* module) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/libraries/network/Server.h
r10622 r10817 61 61 void open(); 62 62 void close(); 63 void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) ;64 virtual bool sendPacket( packet::Packet* packet ) { return packet->send( static_cast<Host*>(this) ); }63 void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID) override; 64 virtual bool sendPacket( packet::Packet* packet ) override{ return packet->send( static_cast<Host*>(this) ); } 65 65 void update(const Clock& time); 66 66 unsigned int getRTT(unsigned int clientID); 67 virtual void printRTT() ;67 virtual void printRTT() override; 68 68 float getPacketLoss(unsigned int clientID); 69 69 int getClientCount() { return this->clientIDs_.size();} … … 73 73 void updateGamestate(); 74 74 private: 75 virtual bool isServer_() {return true;}75 virtual bool isServer_() override{return true;} 76 76 unsigned int playerID(){return 0;} 77 77 78 void addPeer(uint32_t peerID) ;79 void removePeer(uint32_t peerID) ;80 void processPacket(packet::Packet* packet) ;78 void addPeer(uint32_t peerID) override; 79 void removePeer(uint32_t peerID) override; 80 void processPacket(packet::Packet* packet) override; 81 81 82 82 bool createClient(int clientID); … … 85 85 bool sendObjectDeletes(); 86 86 bool isValidTarget(unsigned int targetID); 87 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;88 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) ;87 virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 88 virtual void doReceiveChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override; 89 89 void syncClassid(unsigned int clientID); 90 90 -
code/branches/cpp11_v2/src/libraries/network/TrafficControl.h
r10769 r10817 109 109 110 110 //ClientConnectionListener functions 111 virtual void clientConnected(unsigned int clientID) {};112 virtual void clientDisconnected(unsigned int clientID) ;111 virtual void clientConnected(unsigned int clientID) override{}; 112 virtual void clientDisconnected(unsigned int clientID) override; 113 113 114 114 -
code/branches/cpp11_v2/src/libraries/network/packet/Acknowledgement.h
r7801 r10817 46 46 ~Acknowledgement(); 47 47 48 inline unsigned int getSize() const ;49 virtual bool process(orxonox::Host* host) ;48 inline unsigned int getSize() const override; 49 virtual bool process(orxonox::Host* host) override; 50 50 51 51 unsigned int getAckID(); -
code/branches/cpp11_v2/src/libraries/network/packet/Chat.h
r8858 r10817 49 49 50 50 /* get size of packet */ 51 inline unsigned int getSize() const ;51 inline unsigned int getSize() const override; 52 52 53 53 /* process chat message packet and remove it afterwards */ 54 virtual bool process(orxonox::Host* host) ;54 virtual bool process(orxonox::Host* host) override; 55 55 56 56 /* Get the length of the message (not the full size of the packet) */ -
code/branches/cpp11_v2/src/libraries/network/packet/ClassID.h
r7801 r10817 47 47 ~ClassID(); 48 48 49 uint32_t getSize() const ;50 virtual bool process(orxonox::Host* host) ;49 uint32_t getSize() const override; 50 virtual bool process(orxonox::Host* host) override; 51 51 52 52 private: -
code/branches/cpp11_v2/src/libraries/network/packet/DeleteObjects.h
r7801 r10817 48 48 bool fetchIDs(); 49 49 50 inline unsigned int getSize() const ;51 virtual bool process(orxonox::Host* host) ;50 inline unsigned int getSize() const override; 51 virtual bool process(orxonox::Host* host) override; 52 52 53 53 private: -
code/branches/cpp11_v2/src/libraries/network/packet/FunctionCalls.h
r10624 r10817 52 52 ~FunctionCalls(); 53 53 54 inline unsigned int getSize() const 54 inline unsigned int getSize() const override 55 55 { assert(!this->isDataENetAllocated()); return currentSize_; } 56 virtual bool process(orxonox::Host* host) ;56 virtual bool process(orxonox::Host* host) override; 57 57 58 58 void addCall( uint32_t networkID, uint32_t objectID, const MultiType& mt1, const MultiType& mt2, const MultiType& mt3, const MultiType& mt4, const MultiType& mt5); 59 virtual bool send(orxonox::Host* host) ;59 virtual bool send(orxonox::Host* host) override; 60 60 private: 61 61 std::queue<orxonox::FunctionCall> functionCalls_; -
code/branches/cpp11_v2/src/libraries/network/packet/FunctionIDs.h
r7801 r10817 47 47 ~FunctionIDs(); 48 48 49 virtual uint32_t getSize() const ;50 virtual bool process(orxonox::Host* host) ;49 virtual uint32_t getSize() const override; 50 virtual bool process(orxonox::Host* host) override; 51 51 52 52 private: -
code/branches/cpp11_v2/src/libraries/network/packet/Gamestate.h
r10768 r10817 138 138 // void rawDiff( uint8_t* newdata, uint8_t* data, uint8_t* basedata, uint32_t datalength, uint32_t baselength); 139 139 // inline uint32_t findObject( const SynchronisableHeader& header, uint8_t* mem, uint32_t dataLength, uint32_t startPosition = 0 ); 140 virtual uint32_t getSize() const ;141 virtual bool process(orxonox::Host* host) ;140 virtual uint32_t getSize() const override; 141 virtual bool process(orxonox::Host* host) override; 142 142 uint32_t calcGamestateSize(uint32_t id, uint8_t mode=0x0); 143 143 // inline void diffObject( uint8_t*& newData, uint8_t*& origData, uint8_t*& baseData, SynchronisableHeader& objectHeader, std::vector<uint32_t>::iterator& sizes ); -
code/branches/cpp11_v2/src/libraries/network/packet/Welcome.h
r8706 r10817 45 45 virtual ~Welcome(); 46 46 47 uint8_t *getData() ;48 inline unsigned int getSize() const ;49 virtual bool process(orxonox::Host* host) ;47 uint8_t *getData() override; 48 inline unsigned int getSize() const override; 49 virtual bool process(orxonox::Host* host) override; 50 50 51 51 private: -
code/branches/cpp11_v2/src/libraries/network/synchronisable/NetworkCallback.h
r6417 r10817 53 53 NetworkCallback(T* object, void (T::*function) (void)) : object_(object), function_(function) {} 54 54 virtual ~NetworkCallback() {} 55 virtual void call() 55 virtual void call() override 56 56 { (this->object_->*function_)(); } 57 57 … … 68 68 NetworkCallbackNotify() {} 69 69 virtual ~NetworkCallbackNotify() {} 70 virtual void call() 70 virtual void call() override 71 71 { (this->object_->*function_)( this->oldValue_ ); } 72 72 void setOldValue(const U& value){ this->oldValue_ = value; } -
code/branches/cpp11_v2/src/libraries/network/synchronisable/SynchronisableVariable.h
r10768 r10817 74 74 virtual ~SynchronisableVariable(); 75 75 76 virtual inline uint8_t getMode() { return mode_; }77 virtual inline uint32_t getData(uint8_t*& mem, uint8_t mode) ;78 virtual inline void putData(uint8_t*& mem, uint8_t mode, bool forceCallback = false) ;79 virtual inline uint32_t getSize(uint8_t mode) ;80 virtual inline void* getReference() { return static_cast<void*>(const_cast<typename Loki::TypeTraits<T>::UnqualifiedType*>(&this->variable_)); }76 virtual inline uint8_t getMode() override{ return mode_; } 77 virtual inline uint32_t getData(uint8_t*& mem, uint8_t mode) override; 78 virtual inline void putData(uint8_t*& mem, uint8_t mode, bool forceCallback = false) override; 79 virtual inline uint32_t getSize(uint8_t mode) override; 80 virtual inline void* getReference() override{ return static_cast<void*>(const_cast<typename Loki::TypeTraits<T>::UnqualifiedType*>(&this->variable_)); } 81 81 protected: 82 82 T& variable_; -
code/branches/cpp11_v2/src/libraries/tools/BulletDebugDrawer.h
r10733 r10817 23 23 BulletDebugDrawer(Ogre::SceneManager* sceneManager); 24 24 ~BulletDebugDrawer(); 25 virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) ;25 virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) override; 26 26 // virtual void drawTriangle(const btVector3& v0, const btVector3& v1, const btVector3& v2, const btVector3& color, btScalar); 27 virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color) ;28 virtual void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color) ;29 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btVector3& color) ;30 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btTransform& trans, const btVector3& color) ;31 virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& transform, const btVector3& color) ;32 virtual void drawCone(btScalar radius, btScalar height, int upAxis, const btTransform& transform, const btVector3& color) ;27 virtual void drawSphere (const btVector3& p, btScalar radius, const btVector3& color) override; 28 virtual void drawSphere(btScalar radius, const btTransform& transform, const btVector3& color) override; 29 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btVector3& color) override; 30 virtual void drawBox(const btVector3& bbMin, const btVector3& bbMax, const btTransform& trans, const btVector3& color) override; 31 virtual void drawCylinder(btScalar radius, btScalar halfHeight, int upAxis, const btTransform& transform, const btVector3& color) override; 32 virtual void drawCone(btScalar radius, btScalar height, int upAxis, const btTransform& transform, const btVector3& color) override; 33 33 // virtual void drawPlane(const btVector3& planeNormal, btScalar planeConst, const btTransform& transform, const btVector3& color); 34 34 35 virtual void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) ;35 virtual void drawContactPoint(const btVector3& PointOnB, const btVector3& normalOnB, btScalar distance, int lifeTime, const btVector3& color) override; 36 36 37 virtual void reportErrorWarning(const char* warningString) ;38 virtual void draw3dText(const btVector3& location, const char* textString) ;37 virtual void reportErrorWarning(const char* warningString) override; 38 virtual void draw3dText(const btVector3& location, const char* textString) override; 39 39 40 virtual void setDebugMode(int debugMode) ;41 virtual int getDebugMode() const ;40 virtual void setDebugMode(int debugMode) override; 41 virtual int getDebugMode() const override; 42 42 43 43 void configure(bool bFill, float fillAlpha); 44 44 45 45 protected: 46 bool frameStarted(const Ogre::FrameEvent& evt) ;47 bool frameEnded(const Ogre::FrameEvent& evt) ;46 bool frameStarted(const Ogre::FrameEvent& evt) override; 47 bool frameEnded(const Ogre::FrameEvent& evt) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/libraries/tools/DynamicLines.h
r5781 r10817 84 84 protected: 85 85 /// Implementation DynamicRenderable, creates a simple vertex-only decl 86 virtual void createVertexDeclaration() ;86 virtual void createVertexDeclaration() override; 87 87 /// Implementation DynamicRenderable, pushes point list out to hardware memory 88 virtual void fillHardwareBuffers() ;88 virtual void fillHardwareBuffers() override; 89 89 90 90 private: -
code/branches/cpp11_v2/src/libraries/tools/DynamicRenderable.h
r5781 r10817 61 61 62 62 /// Implementation of SimpleRenderable 63 virtual Real getBoundingRadius(void) const ;63 virtual Real getBoundingRadius(void) const override; 64 64 /// Implementation of SimpleRenderable 65 virtual Real getSquaredViewDepth(const Camera* cam) const ;65 virtual Real getSquaredViewDepth(const Camera* cam) const override; 66 66 67 67 protected: -
code/branches/cpp11_v2/src/libraries/tools/ParticleInterface.h
r10624 r10817 76 76 77 77 protected: 78 virtual void changedTimeFactor(float factor_new, float factor_old) ;78 virtual void changedTimeFactor(float factor_new, float factor_old) override; 79 79 80 80 private: -
code/branches/cpp11_v2/src/libraries/tools/ResourceCollection.h
r9667 r10817 44 44 virtual ~ResourceCollection(); 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 void setResourceGroup(const std::string& resourceGroup); -
code/branches/cpp11_v2/src/libraries/tools/ResourceLocation.h
r9667 r10817 46 46 virtual ~ResourceLocation(); 47 47 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 49 49 50 50 void setPath(const std::string& path) { path_ = path; } -
code/branches/cpp11_v2/src/libraries/tools/Shader.h
r10768 r10817 87 87 { return this->scenemanager_; } 88 88 89 virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera) ;89 virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera) override; 90 90 91 91 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, float value); 92 92 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, int value); 93 93 94 virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr) ;94 virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr) override; 95 95 96 96 private: -
code/branches/cpp11_v2/src/libraries/tools/Timer.h
r9667 r10817 175 175 176 176 protected: 177 virtual float getTimeFactor() ;177 virtual float getTimeFactor() override; 178 178 }; 179 179 } -
code/branches/cpp11_v2/src/libraries/util/ExprParser.cc
r8351 r10817 402 402 { 403 403 this->failed_ = true; 404 return '\0';404 return str; 405 405 } 406 406 }; -
code/branches/cpp11_v2/src/libraries/util/MultiType.h
r10768 r10817 428 428 } 429 429 /// Creates a new value container (works only with specialized types). 430 template <typename T> inline void createNewValueContainer(const T& value) { /* STATIC ASSERT */ *****value; return false;}430 template <typename T> inline void createNewValueContainer(const T& value) { /* STATIC ASSERT */ *****value; } 431 431 432 432 MT_ValueBase* value_; //!< A pointer to the value container -
code/branches/cpp11_v2/src/libraries/util/MultiTypeValue.h
r10768 r10817 58 58 59 59 /// Creates a copy of itself. 60 inline MT_ValueBase* clone() const { return new MT_Value<T>(this->value_, this->type_); }60 inline MT_ValueBase* clone() const override { return new MT_Value<T>(this->value_, this->type_); } 61 61 62 62 /// Resets the current value to the default. 63 inline void reset() { this->value_ = zeroise<T>(); bLastConversionSuccessful = true; }64 65 inline bool getValue(char* value) const { return convertValue<T, char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.66 inline bool getValue(unsigned char* value) const { return convertValue<T, unsigned char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.67 inline bool getValue(short* value) const { return convertValue<T, short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.68 inline bool getValue(unsigned short* value) const { return convertValue<T, unsigned short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.69 inline bool getValue(int* value) const { return convertValue<T, int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.70 inline bool getValue(unsigned int* value) const { return convertValue<T, unsigned int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.71 inline bool getValue(long* value) const { return convertValue<T, long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.72 inline bool getValue(unsigned long* value) const { return convertValue<T, unsigned long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.73 inline bool getValue(long long* value) const { return convertValue<T, long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.74 inline bool getValue(unsigned long long* value) const { return convertValue<T, unsigned long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.75 inline bool getValue(float* value) const { return convertValue<T, float >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.76 inline bool getValue(double* value) const { return convertValue<T, double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.77 inline bool getValue(long double* value) const { return convertValue<T, long double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.78 inline bool getValue(bool* value) const { return convertValue<T, bool >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.79 inline bool getValue(void** value) const { return convertValue<T, void* >(value, value_, nullptr); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.80 inline bool getValue(std::string* value) const { return convertValue<T, std::string >(value, value_, NilValue<std::string> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.81 inline bool getValue(orxonox::Vector2* value) const { return convertValue<T, orxonox::Vector2 >(value, value_, NilValue<orxonox::Vector2> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.82 inline bool getValue(orxonox::Vector3* value) const { return convertValue<T, orxonox::Vector3 >(value, value_, NilValue<orxonox::Vector3> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.83 inline bool getValue(orxonox::Vector4* value) const { return convertValue<T, orxonox::Vector4 >(value, value_, NilValue<orxonox::Vector4> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.84 inline bool getValue(orxonox::ColourValue* value) const { return convertValue<T, orxonox::ColourValue>(value, value_, NilValue<orxonox::ColourValue>()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.85 inline bool getValue(orxonox::Quaternion* value) const { return convertValue<T, orxonox::Quaternion >(value, value_, NilValue<orxonox::Quaternion> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.86 inline bool getValue(orxonox::Radian* value) const { return convertValue<T, orxonox::Radian >(value, value_, NilValue<orxonox::Radian> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.87 inline bool getValue(orxonox::Degree* value) const { return convertValue<T, orxonox::Degree >(value, value_, NilValue<orxonox::Degree> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match.63 inline void reset() override { this->value_ = zeroise<T>(); bLastConversionSuccessful = true; } 64 65 inline bool getValue(char* value) const override { return convertValue<T, char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 66 inline bool getValue(unsigned char* value) const override { return convertValue<T, unsigned char >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 67 inline bool getValue(short* value) const override { return convertValue<T, short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 68 inline bool getValue(unsigned short* value) const override { return convertValue<T, unsigned short >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 69 inline bool getValue(int* value) const override { return convertValue<T, int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 70 inline bool getValue(unsigned int* value) const override { return convertValue<T, unsigned int >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 71 inline bool getValue(long* value) const override { return convertValue<T, long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 72 inline bool getValue(unsigned long* value) const override { return convertValue<T, unsigned long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 73 inline bool getValue(long long* value) const override { return convertValue<T, long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 74 inline bool getValue(unsigned long long* value) const override { return convertValue<T, unsigned long long >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 75 inline bool getValue(float* value) const override { return convertValue<T, float >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 76 inline bool getValue(double* value) const override { return convertValue<T, double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 77 inline bool getValue(long double* value) const override { return convertValue<T, long double >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 78 inline bool getValue(bool* value) const override { return convertValue<T, bool >(value, value_, 0); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 79 inline bool getValue(void** value) const override { return convertValue<T, void* >(value, value_, nullptr); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 80 inline bool getValue(std::string* value) const override { return convertValue<T, std::string >(value, value_, NilValue<std::string> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 81 inline bool getValue(orxonox::Vector2* value) const override { return convertValue<T, orxonox::Vector2 >(value, value_, NilValue<orxonox::Vector2> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 82 inline bool getValue(orxonox::Vector3* value) const override { return convertValue<T, orxonox::Vector3 >(value, value_, NilValue<orxonox::Vector3> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 83 inline bool getValue(orxonox::Vector4* value) const override { return convertValue<T, orxonox::Vector4 >(value, value_, NilValue<orxonox::Vector4> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 84 inline bool getValue(orxonox::ColourValue* value) const override { return convertValue<T, orxonox::ColourValue>(value, value_, NilValue<orxonox::ColourValue>()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 85 inline bool getValue(orxonox::Quaternion* value) const override { return convertValue<T, orxonox::Quaternion >(value, value_, NilValue<orxonox::Quaternion> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 86 inline bool getValue(orxonox::Radian* value) const override { return convertValue<T, orxonox::Radian >(value, value_, NilValue<orxonox::Radian> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 87 inline bool getValue(orxonox::Degree* value) const override { return convertValue<T, orxonox::Degree >(value, value_, NilValue<orxonox::Degree> ()); } ///< Assigns the value to the given pointer. The value gets converted if the types don't match. 88 88 89 89 /** … … 91 91 @param other The other MultiType 92 92 */ 93 inline bool setValue(const MultiType& other) 93 inline bool setValue(const MultiType& other) override 94 94 { 95 95 if (other.value_) … … 104 104 } 105 105 106 inline bool setValue(const char& value) { return (bLastConversionSuccessful = convertValue<char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.107 inline bool setValue(const unsigned char& value) { return (bLastConversionSuccessful = convertValue<unsigned char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.108 inline bool setValue(const short& value) { return (bLastConversionSuccessful = convertValue<short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.109 inline bool setValue(const unsigned short& value) { return (bLastConversionSuccessful = convertValue<unsigned short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.110 inline bool setValue(const int& value) { return (bLastConversionSuccessful = convertValue<int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.111 inline bool setValue(const unsigned int& value) { return (bLastConversionSuccessful = convertValue<unsigned int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.112 inline bool setValue(const long& value) { return (bLastConversionSuccessful = convertValue<long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.113 inline bool setValue(const unsigned long& value) { return (bLastConversionSuccessful = convertValue<unsigned long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.114 inline bool setValue(const long long& value) { return (bLastConversionSuccessful = convertValue<long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.115 inline bool setValue(const unsigned long long& value) { return (bLastConversionSuccessful = convertValue<unsigned long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.116 inline bool setValue(const float& value) { return (bLastConversionSuccessful = convertValue<float , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.117 inline bool setValue(const double& value) { return (bLastConversionSuccessful = convertValue<double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.118 inline bool setValue(const long double& value) { return (bLastConversionSuccessful = convertValue<long double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.119 inline bool setValue(const bool& value) { return (bLastConversionSuccessful = convertValue<bool , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.120 inline bool setValue( void* const& value) { return (bLastConversionSuccessful = convertValue<void* , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.121 inline bool setValue(const std::string& value) { return (bLastConversionSuccessful = convertValue<std::string , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.122 inline bool setValue(const orxonox::Vector2& value) { return (bLastConversionSuccessful = convertValue<orxonox::Vector2 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.123 inline bool setValue(const orxonox::Vector3& value) { return (bLastConversionSuccessful = convertValue<orxonox::Vector3 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.124 inline bool setValue(const orxonox::Vector4& value) { return (bLastConversionSuccessful = convertValue<orxonox::Vector4 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.125 inline bool setValue(const orxonox::ColourValue& value) { return (bLastConversionSuccessful = convertValue<orxonox::ColourValue, T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.126 inline bool setValue(const orxonox::Quaternion& value) { return (bLastConversionSuccessful = convertValue<orxonox::Quaternion , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.127 inline bool setValue(const orxonox::Radian& value) { return (bLastConversionSuccessful = convertValue<orxonox::Radian , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.128 inline bool setValue(const orxonox::Degree& value) { return (bLastConversionSuccessful = convertValue<orxonox::Degree , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T.106 inline bool setValue(const char& value) override { return (bLastConversionSuccessful = convertValue<char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 107 inline bool setValue(const unsigned char& value) override { return (bLastConversionSuccessful = convertValue<unsigned char , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 108 inline bool setValue(const short& value) override { return (bLastConversionSuccessful = convertValue<short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 109 inline bool setValue(const unsigned short& value) override { return (bLastConversionSuccessful = convertValue<unsigned short , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 110 inline bool setValue(const int& value) override { return (bLastConversionSuccessful = convertValue<int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 111 inline bool setValue(const unsigned int& value) override { return (bLastConversionSuccessful = convertValue<unsigned int , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 112 inline bool setValue(const long& value) override { return (bLastConversionSuccessful = convertValue<long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 113 inline bool setValue(const unsigned long& value) override { return (bLastConversionSuccessful = convertValue<unsigned long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 114 inline bool setValue(const long long& value) override { return (bLastConversionSuccessful = convertValue<long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 115 inline bool setValue(const unsigned long long& value) override { return (bLastConversionSuccessful = convertValue<unsigned long long , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 116 inline bool setValue(const float& value) override { return (bLastConversionSuccessful = convertValue<float , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 117 inline bool setValue(const double& value) override { return (bLastConversionSuccessful = convertValue<double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 118 inline bool setValue(const long double& value) override { return (bLastConversionSuccessful = convertValue<long double , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 119 inline bool setValue(const bool& value) override { return (bLastConversionSuccessful = convertValue<bool , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 120 inline bool setValue( void* const& value) override { return (bLastConversionSuccessful = convertValue<void* , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 121 inline bool setValue(const std::string& value) override { return (bLastConversionSuccessful = convertValue<std::string , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 122 inline bool setValue(const orxonox::Vector2& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Vector2 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 123 inline bool setValue(const orxonox::Vector3& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Vector3 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 124 inline bool setValue(const orxonox::Vector4& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Vector4 , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 125 inline bool setValue(const orxonox::ColourValue& value) override { return (bLastConversionSuccessful = convertValue<orxonox::ColourValue, T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 126 inline bool setValue(const orxonox::Quaternion& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Quaternion , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 127 inline bool setValue(const orxonox::Radian& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Radian , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 128 inline bool setValue(const orxonox::Degree& value) override { return (bLastConversionSuccessful = convertValue<orxonox::Degree , T>(&value_, value, NilValue<T>())); } ///< Assigns the value by converting it to T. 129 129 130 130 /// Puts the current value on the stream 131 inline void toString(std::ostream& outstream) const { outstream << this->value_; }131 inline void toString(std::ostream& outstream) const override { outstream << this->value_; } 132 132 133 133 /// loads data from the bytestream (mem) into the MT and increases the bytestream pointer by the size of the data 134 inline void importData( uint8_t*& mem ) { loadAndIncrease( /*(const T&)*/this->value_, mem ); }134 inline void importData( uint8_t*& mem ) override { loadAndIncrease( /*(const T&)*/this->value_, mem ); } 135 135 /// saves data from the MT into the bytestream (mem) and increases the bytestream pointer by the size of the data 136 inline void exportData( uint8_t*& mem ) const { saveAndIncrease( /*(const T&)*/this->value_, mem ); }136 inline void exportData( uint8_t*& mem ) const override { saveAndIncrease( /*(const T&)*/this->value_, mem ); } 137 137 /// returns the size of the data that would be saved by exportData 138 inline uint8_t getSize() const { return returnSize( this->value_ ); }138 inline uint8_t getSize() const override { return returnSize( this->value_ ); } 139 139 140 140 T value_; ///< The stored value -
code/branches/cpp11_v2/src/libraries/util/SharedPtr.h
r10770 r10817 176 176 SharedCounterImpl(T* pointer) : pointer_(pointer) {} 177 177 178 void destroy() 178 void destroy() override 179 179 { 180 180 delete this->pointer_; -
code/branches/cpp11_v2/src/libraries/util/output/BaseWriter.h
r8858 r10817 103 103 104 104 protected: 105 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) ;105 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) override; 106 106 107 107 private: -
code/branches/cpp11_v2/src/libraries/util/output/ConsoleWriter.h
r9550 r10817 63 63 64 64 protected: 65 virtual void printLine(const std::string& line, OutputLevel level) ;65 virtual void printLine(const std::string& line, OutputLevel level) override; 66 66 67 67 private: -
code/branches/cpp11_v2/src/libraries/util/output/LogWriter.h
r9550 r10817 70 70 71 71 protected: 72 virtual void printLine(const std::string& line, OutputLevel level) ;72 virtual void printLine(const std::string& line, OutputLevel level) override; 73 73 74 74 private: -
code/branches/cpp11_v2/src/libraries/util/output/MemoryWriter.h
r9550 r10817 75 75 76 76 protected: 77 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) ;77 virtual void output(OutputLevel level, const OutputContextContainer& context, const std::vector<std::string>& lines) override; 78 78 79 79 private: -
code/branches/cpp11_v2/src/libraries/util/output/OutputManager.h
r9550 r10817 81 81 virtual void unregisterListener(OutputListener* listener); 82 82 83 virtual void updatedLevelMask(const OutputListener* listener) 83 virtual void updatedLevelMask(const OutputListener* listener) override 84 84 { this->updateCombinedLevelMask(); } 85 virtual void updatedAdditionalContextsLevelMask(const OutputListener* listener) 85 virtual void updatedAdditionalContextsLevelMask(const OutputListener* listener) override 86 86 { this->updateCombinedAdditionalContextsLevelMask(); } 87 virtual void updatedAdditionalContextsMask(const OutputListener* listener) 87 virtual void updatedAdditionalContextsMask(const OutputListener* listener) override 88 88 { this->updateCombinedAdditionalContextsMask(); } 89 89 -
code/branches/cpp11_v2/src/libraries/util/output/SubcontextOutputListener.h
r9550 r10817 73 73 virtual ~SubcontextOutputListener(); 74 74 75 virtual void setAdditionalContextsMask(OutputContextMask mask) ;75 virtual void setAdditionalContextsMask(OutputContextMask mask) override; 76 76 void setAdditionalSubcontexts(const std::set<const OutputContextContainer*>& subcontexts); 77 77 78 virtual bool acceptsOutput(OutputLevel level, const OutputContextContainer& context) const ;78 virtual bool acceptsOutput(OutputLevel level, const OutputContextContainer& context) const override; 79 79 80 80 inline const std::set<OutputContextSubID>& getSubcontexts() const -
code/branches/cpp11_v2/src/modules/designtools/CreateStars.h
r9667 r10817 43 43 void createBillboards(); 44 44 45 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 47 void setNumStars(int num) { -
code/branches/cpp11_v2/src/modules/designtools/SkyboxGenerator.h
r10769 r10817 65 65 SkyboxGenerator(); 66 66 virtual ~SkyboxGenerator(); 67 void tick(float dt) ; // This is where the skybox generation happens.67 void tick(float dt) override; // This is where the skybox generation happens. 68 68 static void createSkybox(void); // Generate the 6 faces of a skybox. 69 69 void setConfigValues(void); // Sets some config values. -
code/branches/cpp11_v2/src/modules/docking/Dock.h
r9939 r10817 65 65 66 66 // XML interface 67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;68 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 68 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 69 69 70 70 // XML functions -
code/branches/cpp11_v2/src/modules/docking/DockToShip.h
r9667 r10817 60 60 virtual ~DockToShip(); 61 61 62 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;62 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 63 63 void setTargetId(const std::string& str); 64 64 const std::string& getTargetId() const; 65 65 66 virtual bool docking(PlayerInfo* player) ; //!< Called when docking starts67 virtual bool release(PlayerInfo* player) ; //!< Called when player wants undock66 virtual bool docking(PlayerInfo* player) override; //!< Called when docking starts 67 virtual bool release(PlayerInfo* player) override; //!< Called when player wants undock 68 68 private: 69 69 std::string target_; -
code/branches/cpp11_v2/src/modules/docking/DockingController.h
r9667 r10817 45 45 virtual ~DockingController(); 46 46 47 virtual void tick(float dt) ;47 virtual void tick(float dt) override; 48 48 49 49 void takeControl(bool docking); … … 53 53 54 54 protected: 55 virtual void positionReached() ;55 virtual void positionReached() override; 56 56 57 57 private: -
code/branches/cpp11_v2/src/modules/docking/DockingTarget.h
r9667 r10817 58 58 virtual ~DockingTarget(); 59 59 60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 61 62 62 }; -
code/branches/cpp11_v2/src/modules/docking/MoveToDockingTarget.h
r9667 r10817 59 59 virtual ~MoveToDockingTarget(); 60 60 61 virtual bool docking(PlayerInfo* player) ; //!< Called when a player starts docking62 virtual bool release(PlayerInfo* player) ; //!< Called when player wants to undock61 virtual bool docking(PlayerInfo* player) override; //!< Called when a player starts docking 62 virtual bool release(PlayerInfo* player) override; //!< Called when player wants to undock 63 63 }; 64 64 -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRace.h
r10624 r10817 69 69 DodgeRace(Context* context); 70 70 71 virtual void start() ;72 virtual void end() ;71 virtual void start() override; 72 virtual void end() override; 73 73 74 virtual void tick(float dt) ;74 virtual void tick(float dt) override; 75 75 76 virtual void playerPreSpawn(PlayerInfo* player) ;76 virtual void playerPreSpawn(PlayerInfo* player) override; 77 77 78 78 void levelUp(); … … 85 85 void setCenterpoint(DodgeRaceCenterPoint* center) 86 86 { this->center_ = center; } 87 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command87 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 88 88 89 89 // checks if multiplier should be reset. -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceCenterPoint.h
r10624 r10817 50 50 DodgeRaceCenterPoint(Context* context); //checks whether the gametype is actually DodgeRace. 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 53 54 54 private: -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceHUDinfo.h
r10234 r10817 44 44 DodgeRaceHUDinfo(Context* context); 45 45 46 virtual void tick(float dt) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void changedOwner() ;46 virtual void tick(float dt) override; 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 virtual void changedOwner() override; 49 49 50 50 inline void setShowPoints(bool value) -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.h
r10624 r10817 52 52 DodgeRaceShip(Context* context); 53 53 54 virtual void tick(float dt) ;54 virtual void tick(float dt) override; 55 55 56 56 // overwrite for 2d movement 57 virtual void moveFrontBack(const Vector2& value) ;58 virtual void moveRightLeft(const Vector2& value) ;57 virtual void moveFrontBack(const Vector2& value) override; 58 virtual void moveRightLeft(const Vector2& value) override; 59 59 60 60 // Starts or stops fireing 61 virtual void boost(bool bBoost) ;61 virtual void boost(bool bBoost) override; 62 62 63 63 //no rotation! 64 virtual void rotateYaw(const Vector2& value) {};65 virtual void rotatePitch(const Vector2& value) {};64 virtual void rotateYaw(const Vector2& value) override{}; 65 virtual void rotatePitch(const Vector2& value) override{}; 66 66 67 67 //return to main menu if game has ended. 68 virtual void rotateRoll(const Vector2& value) {if (getGame()) if (getGame()->bEndGame) getGame()->end();};68 virtual void rotateRoll(const Vector2& value) override{if (getGame()) if (getGame()->bEndGame) getGame()->end();}; 69 69 70 70 virtual void updateLevel(); … … 74 74 75 75 protected: 76 virtual void death() ;76 virtual void death() override; 77 77 78 78 private: -
code/branches/cpp11_v2/src/modules/gametypes/OldRaceCheckPoint.h
r9667 r10817 48 48 virtual ~OldRaceCheckPoint(); 49 49 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;51 virtual void tick(float dt) ;50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 51 virtual void tick(float dt) override; 52 52 53 53 protected: 54 virtual void triggered(bool bIsTriggered) ;54 virtual void triggered(bool bIsTriggered) override; 55 55 inline void setLast(bool isLast) 56 56 { this->bIsLast_ = isLast; } … … 64 64 inline float getTimeLimit() 65 65 { return this->bTimeLimit_;} 66 inline const WorldEntity* getWorldEntity() const 66 inline const WorldEntity* getWorldEntity() const override 67 67 { return this; } 68 68 -
code/branches/cpp11_v2/src/modules/gametypes/OldSpaceRace.h
r9667 r10817 55 55 virtual ~OldSpaceRace() {} 56 56 57 virtual void start() ;58 virtual void end() ;57 virtual void start() override; 58 virtual void end() override; 59 59 60 60 virtual void newCheckpointReached(); 61 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command.61 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command. 62 62 //<! This is only a temporary solution. Better: create racingBots. 63 63 -
code/branches/cpp11_v2/src/modules/gametypes/RaceCheckPoint.h
r9971 r10817 48 48 virtual ~RaceCheckPoint(); 49 49 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 51 51 52 52 inline void setCheckpointIndex(int checkpointIndex) … … 92 92 protected: 93 93 94 virtual void fire(bool bIsTriggered, BaseObject* originator) ;94 virtual void fire(bool bIsTriggered, BaseObject* originator) override; 95 95 96 inline const WorldEntity* getWorldEntity() const 96 inline const WorldEntity* getWorldEntity() const override 97 97 { 98 98 return this; -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRace.h
r9667 r10817 57 57 virtual ~SpaceRace() {} 58 58 59 void tick(float dt) ;59 void tick(float dt) override; 60 60 61 virtual void end() ;61 virtual void end() override; 62 62 63 63 void newCheckpointReached(RaceCheckPoint* checkpoint, PlayerInfo* player); … … 70 70 { return this->clock_; } 71 71 72 bool allowPawnHit(Pawn* victim, Pawn* originator) ;73 bool allowPawnDamage(Pawn* victim, Pawn* originator) ;74 bool allowPawnDeath(Pawn* victim, Pawn* originator) ;72 bool allowPawnHit(Pawn* victim, Pawn* originator) override; 73 bool allowPawnDamage(Pawn* victim, Pawn* originator) override; 74 bool allowPawnDeath(Pawn* victim, Pawn* originator) override; 75 75 76 76 private: -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceController.h
r10262 r10817 42 42 SpaceRaceController(Context* context); 43 43 virtual ~SpaceRaceController(); 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void tick(float dt) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 virtual void tick(float dt) override; 46 46 47 47 private: -
code/branches/cpp11_v2/src/modules/gametypes/SpaceRaceManager.h
r9667 r10817 58 58 virtual ~SpaceRaceManager() ; 59 59 60 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;60 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 61 62 62 void addCheckpoint(RaceCheckPoint* checkpoint); … … 69 69 std::vector<RaceCheckPoint*> getAllCheckpoints(); 70 70 71 void tick(float dt) ;71 void tick(float dt) override; 72 72 73 73 protected: -
code/branches/cpp11_v2/src/modules/invader/Invader.h
r10733 r10817 49 49 Invader(Context* context); 50 50 51 virtual void start() ;52 virtual void end() ;53 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command51 virtual void start() override; 52 virtual void end() override; 53 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 54 54 55 55 void spawnEnemy(); -
code/branches/cpp11_v2/src/modules/invader/InvaderCenterPoint.h
r10624 r10817 47 47 InvaderCenterPoint(Context* context); //checks whether the gametype is actually Invader. 48 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 51 51 private: -
code/branches/cpp11_v2/src/modules/invader/InvaderEnemy.h
r10733 r10817 46 46 InvaderEnemy(Context* context); 47 47 48 virtual void tick(float dt) ;48 virtual void tick(float dt) override; 49 49 virtual bool collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint); 50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) ;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;} 52 52 -
code/branches/cpp11_v2/src/modules/invader/InvaderEnemyShooter.h
r10626 r10817 47 47 InvaderEnemyShooter(Context* context); 48 48 49 virtual void tick(float dt) ;50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) ;49 virtual void tick(float dt) override; 50 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs) override; 51 51 protected: 52 52 void shoot(); -
code/branches/cpp11_v2/src/modules/invader/InvaderHUDinfo.h
r9957 r10817 40 40 InvaderHUDinfo(Context* context); 41 41 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void changedOwner() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void changedOwner() override; 45 45 46 46 inline void setShowLives(bool value) -
code/branches/cpp11_v2/src/modules/invader/InvaderShip.h
r10733 r10817 47 47 InvaderShip(Context* context); 48 48 49 virtual void tick(float dt) ;49 virtual void tick(float dt) override; 50 50 51 51 // overwrite for 2d movement 52 virtual void moveFrontBack(const Vector2& value) ;53 virtual void moveRightLeft(const Vector2& value) ;52 virtual void moveFrontBack(const Vector2& value) override; 53 virtual void moveRightLeft(const Vector2& value) override; 54 54 55 55 // Starts or stops fireing 56 virtual void boost(bool bBoost) ;56 virtual void boost(bool bBoost) override; 57 57 58 58 //no rotation! 59 virtual void rotateYaw(const Vector2& value) {};60 virtual void rotatePitch(const Vector2& value) {};59 virtual void rotateYaw(const Vector2& value) override{}; 60 virtual void rotatePitch(const Vector2& value) override{}; 61 61 //return to main menu if game has ended. 62 virtual void rotateRoll(const Vector2& value) ;62 virtual void rotateRoll(const Vector2& value) override; 63 63 64 64 virtual void updateLevel(); … … 67 67 68 68 protected: 69 virtual void death() ;69 virtual void death() override; 70 70 private: 71 71 Invader* getGame(); -
code/branches/cpp11_v2/src/modules/invader/InvaderWeapon.h
r10733 r10817 48 48 virtual ~InvaderWeapon(); 49 49 protected: 50 virtual void shot() ;50 virtual void shot() override; 51 51 WeakPtr<Projectile> projectile; 52 52 }; -
code/branches/cpp11_v2/src/modules/invader/InvaderWeaponEnemy.h
r10733 r10817 47 47 InvaderWeaponEnemy(Context* context); 48 48 protected: 49 virtual void shot() ;49 virtual void shot() override; 50 50 }; 51 51 } -
code/branches/cpp11_v2/src/modules/jump/Jump.cc
r10768 r10817 98 98 if (screenShiftSinceLastUpdate_ > center_->getSectionLength()) 99 99 { 100 if (sectionNumber_ > 2 && sectionNumber_%4 == 0 && rand()%2 == 0 && figure_->propellerActive_ == false && figure_->rocketActive_ == false&& addAdventure(adventureNumber_) == true)100 if (sectionNumber_ > 2 && sectionNumber_%4 == 0 && rand()%2 == 0 && figure_->propellerActive_ == nullptr && figure_->rocketActive_ == nullptr && addAdventure(adventureNumber_) == true) 101 101 { 102 102 screenShiftSinceLastUpdate_ -= 2*center_->getSectionLength(); -
code/branches/cpp11_v2/src/modules/jump/Jump.h
r10733 r10817 40 40 Jump(Context* context); 41 41 virtual ~Jump(); 42 virtual void tick(float dt) ;43 virtual void start() ;44 virtual void end() ;45 virtual void spawnPlayer(PlayerInfo* player) ;42 virtual void tick(float dt) override; 43 virtual void start() override; 44 virtual void end() override; 45 virtual void spawnPlayer(PlayerInfo* player) override; 46 46 int getScore(PlayerInfo* player) const; 47 47 float getFuel() const; -
code/branches/cpp11_v2/src/modules/jump/JumpBoots.h
r10733 r10817 40 40 JumpBoots(Context* context); 41 41 virtual ~JumpBoots(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpCenterpoint.h
r10733 r10817 108 108 JumpCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Jump. 109 109 virtual ~JumpCenterpoint() {} 110 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method to create a JumpCenterpoint through XML.110 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a JumpCenterpoint through XML. 111 111 void setPlatformStaticTemplate(const std::string& balltemplate) 112 112 { this->platformStaticTemplate_ = balltemplate; } -
code/branches/cpp11_v2/src/modules/jump/JumpEnemy.h
r10733 r10817 46 46 JumpEnemy(Context* context); 47 47 virtual ~JumpEnemy(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 void setFieldDimension(float width, float height) 51 51 { this->fieldWidth_ = width; this->fieldHeight_ = height; } -
code/branches/cpp11_v2/src/modules/jump/JumpFigure.cc
r10765 r10817 319 319 bool JumpFigure::StartShield(JumpShield* shield) 320 320 { 321 if (shieldActive_ == false)321 if (shieldActive_ == nullptr) 322 322 { 323 323 attach(shield); -
code/branches/cpp11_v2/src/modules/jump/JumpFigure.h
r10262 r10817 40 40 JumpFigure(Context* context); //!< Constructor. Registers and initializes the object. 41 41 virtual ~JumpFigure() {} 42 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void tick(float dt) ;44 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.45 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.46 virtual void rotateYaw(const Vector2& value) ;47 virtual void rotatePitch(const Vector2& value) ;48 virtual void rotateRoll(const Vector2& value) ;42 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 43 virtual void tick(float dt) override; 44 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 45 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 46 virtual void rotateYaw(const Vector2& value) override; 47 virtual void rotatePitch(const Vector2& value) override; 48 virtual void rotateRoll(const Vector2& value) override; 49 49 void fire(unsigned int firemode); 50 virtual void fired(unsigned int firemode) ;50 virtual void fired(unsigned int firemode) override; 51 51 virtual void JumpFromPlatform(JumpPlatform* platform); 52 52 virtual void JumpFromSpring(JumpSpring* spring); -
code/branches/cpp11_v2/src/modules/jump/JumpItem.h
r10733 r10817 47 47 JumpItem(Context* context); 48 48 virtual ~JumpItem(); 49 virtual void tick(float dt) ;50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void tick(float dt) override; 50 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 51 51 virtual void setProperties(float newLeftBoundary, float newRightBoundary, float newLowerBoundary, float newUpperBoundary, float newHSpeed, float newVSpeed); 52 52 virtual void setFigure(JumpFigure* newFigure); -
code/branches/cpp11_v2/src/modules/jump/JumpPlatform.h
r10733 r10817 46 46 JumpPlatform(Context* context); 47 47 virtual ~JumpPlatform(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 void setFigure(JumpFigure* newFigure); 51 51 virtual void touchFigure(); -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformDisappear.h
r10733 r10817 46 46 JumpPlatformDisappear(Context* context); 47 47 virtual ~JumpPlatformDisappear(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 virtual void setProperties(bool active); 51 51 virtual bool isActive(); 52 virtual void touchFigure() ;52 virtual void touchFigure() override; 53 53 54 54 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformFake.h
r10733 r10817 46 46 JumpPlatformFake(Context* context); 47 47 virtual ~JumpPlatformFake(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 }; 51 51 } -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformHMove.h
r10733 r10817 41 41 JumpPlatformHMove(Context* context); 42 42 virtual ~JumpPlatformHMove(); 43 virtual void tick(float dt) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void tick(float dt) override; 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 virtual void setProperties(float leftBoundary, float rightBoundary, float speed); 46 virtual void touchFigure() ;46 virtual void touchFigure() override; 47 47 48 48 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformStatic.h
r10733 r10817 41 41 virtual ~JumpPlatformStatic(); 42 42 43 virtual void tick(float dt) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void tick(float dt) override; 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 46 virtual void touchFigure() ;46 virtual void touchFigure() override; 47 47 }; 48 48 } -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformTimer.h
r10733 r10817 46 46 JumpPlatformTimer(Context* context); 47 47 virtual ~JumpPlatformTimer(); 48 virtual void tick(float dt) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) override; 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 virtual void setProperties(float time); 51 51 virtual bool isActive(void); 52 virtual void touchFigure() ;52 virtual void touchFigure() override; 53 53 54 54 void setEffectPath(const std::string& effectPath) -
code/branches/cpp11_v2/src/modules/jump/JumpPlatformVMove.h
r10733 r10817 40 40 JumpPlatformVMove(Context* context); 41 41 virtual ~JumpPlatformVMove(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 44 virtual void setProperties(float leftBoundary, float rightBoundary, float speed); 45 virtual void touchFigure() ;45 virtual void touchFigure() override; 46 46 47 47 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpProjectile.h
r10624 r10817 43 43 virtual ~JumpProjectile(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 49 49 void setFieldDimension(float width, float height) -
code/branches/cpp11_v2/src/modules/jump/JumpPropeller.h
r10733 r10817 40 40 JumpPropeller(Context* context); 41 41 virtual ~JumpPropeller(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpRocket.h
r10733 r10817 40 40 JumpRocket(Context* context); 41 41 virtual ~JumpRocket(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpScore.h
r10262 r10817 44 44 virtual ~JumpScore(); 45 45 46 virtual void tick(float dt) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void changedOwner() ;46 virtual void tick(float dt) override; 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 virtual void changedOwner() override; 49 49 50 50 void setShowScore(const bool showScore) -
code/branches/cpp11_v2/src/modules/jump/JumpShield.h
r10733 r10817 40 40 JumpShield(Context* context); 41 41 virtual ~JumpShield(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void touchFigure() ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void touchFigure() override; 45 45 virtual float getFuelState(); 46 46 protected: -
code/branches/cpp11_v2/src/modules/jump/JumpSpring.h
r10733 r10817 40 40 JumpSpring(Context* context); 41 41 virtual ~JumpSpring(); 42 virtual void tick(float dt) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;42 virtual void tick(float dt) override; 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 44 virtual void accelerateFigure(); 45 virtual void touchFigure() ;45 virtual void touchFigure() override; 46 46 protected: 47 47 float stretch_; -
code/branches/cpp11_v2/src/modules/mini4dgame/Mini4Dgame.h
r10230 r10817 65 65 virtual ~Mini4Dgame(); //!< Destructor. Cleans up, if initialized. 66 66 67 virtual void start(void) ; //!< Starts the Mini4Dgame minigame.68 virtual void end(void) ; ///!< Ends the Mini4Dgame minigame.67 virtual void start(void) override; //!< Starts the Mini4Dgame minigame. 68 virtual void end(void) override; ///!< Ends the Mini4Dgame minigame. 69 69 70 virtual void spawnPlayer(PlayerInfo* player) ; //!< Spawns the input player.70 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. 71 71 72 72 void setGameboard(Mini4DgameBoard* board) … … 84 84 85 85 protected: 86 virtual void spawnPlayersIfRequested() ; //!< Spawns player.86 virtual void spawnPlayersIfRequested() override; //!< Spawns player. 87 87 88 88 -
code/branches/cpp11_v2/src/modules/mini4dgame/Mini4DgameBoard.h
r10624 r10817 74 74 //virtual ~Mini4DgameBoard(); 75 75 76 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;76 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 77 77 78 78 bool isValidMove(const Mini4DgamePosition& move); -
code/branches/cpp11_v2/src/modules/notifications/NotificationDispatcher.h
r9667 r10817 79 79 virtual ~NotificationDispatcher(); //!< Destructor. 80 80 81 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a NotificationDispatcher object through XML.82 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;81 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a NotificationDispatcher object through XML. 82 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 83 83 84 84 /** -
code/branches/cpp11_v2/src/modules/notifications/NotificationManager.h
r9667 r10817 120 120 virtual ~NotificationManager(); 121 121 122 virtual void preDestroy(void) ; // Is called before the object is destroyed.122 virtual void preDestroy(void) override; // Is called before the object is destroyed. 123 123 124 124 /** … … 128 128 static NotificationManager& getInstance() { return Singleton<NotificationManager>::getInstance(); } // tolua_export 129 129 130 virtual bool registerNotification(const std::string& message, const std::string& sender, notificationMessageType::Value type) ;131 virtual bool executeCommand(notificationCommand::Value command, const std::string& sender) ;130 virtual bool registerNotification(const std::string& message, const std::string& sender, notificationMessageType::Value type) override; 131 virtual bool executeCommand(notificationCommand::Value command, const std::string& sender) override; 132 132 133 133 bool registerNotification(Notification* notification); // Registers a Notification within the NotificationManager. -
code/branches/cpp11_v2/src/modules/notifications/NotificationQueue.h
r9667 r10817 97 97 virtual ~NotificationQueue(); 98 98 99 virtual void tick(float dt) ; // To update from time to time.100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;101 102 virtual void changedName(void) ;99 virtual void tick(float dt) override; // To update from time to time. 100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 101 102 virtual void changedName(void) override; 103 103 104 104 void update(void); // Updates the NotificationQueue. -
code/branches/cpp11_v2/src/modules/notifications/NotificationQueueCEGUI.h
r9667 r10817 73 73 virtual ~NotificationQueueCEGUI(); 74 74 75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 76 76 77 virtual void changedName(void) ;77 virtual void changedName(void) override; 78 78 79 79 void destroy(bool noGraphics = false); // Destroys the NotificationQueue. … … 136 136 void registerVariables(); 137 137 138 virtual void create(void) ; // Creates the NotificationQueue in lua.138 virtual void create(void) override; // Creates the NotificationQueue in lua. 139 139 140 virtual void notificationPushed(Notification* notification) ; // Is called by the NotificationQueue when a Notification was pushed141 virtual void notificationPopped(void) ; // Is called by the NotificationQueue when a Notification was popped.142 virtual void notificationRemoved(unsigned int index) ; // Is called when a Notification was removed.140 virtual void notificationPushed(Notification* notification) override; // Is called by the NotificationQueue when a Notification was pushed 141 virtual void notificationPopped(void) override; // Is called by the NotificationQueue when a Notification was popped. 142 virtual void notificationRemoved(unsigned int index) override; // Is called when a Notification was removed. 143 143 144 virtual void clear(bool noGraphics = false) ; // Clears the NotificationQueue by removing all NotificationContainers.144 virtual void clear(bool noGraphics = false) override; // Clears the NotificationQueue by removing all NotificationContainers. 145 145 146 146 protected: -
code/branches/cpp11_v2/src/modules/objects/Attacher.h
r9667 r10817 51 51 virtual ~Attacher() {} 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 virtual void processEvent(Event& event) ;56 virtual void changedActivity() ;57 virtual void changedVisibility() ;55 virtual void processEvent(Event& event) override; 56 virtual void changedActivity() override; 57 virtual void changedVisibility() override; 58 58 59 59 void addObject(WorldEntity* object); … … 64 64 { return this->targetname_; } 65 65 66 void loadedNewXMLName(BaseObject* object) ;66 void loadedNewXMLName(BaseObject* object) override; 67 67 68 68 private: -
code/branches/cpp11_v2/src/modules/objects/ForceField.h
r10622 r10817 92 92 virtual ~ForceField(); 93 93 94 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates a ForceField object through XML.94 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates a ForceField object through XML. 95 95 void registerVariables(); //!< Registers the variables that should get synchronised over the network 96 virtual void tick(float dt) ; //!< A method that is called every tick.96 virtual void tick(float dt) override; //!< A method that is called every tick. 97 97 98 98 -
code/branches/cpp11_v2/src/modules/objects/Planet.h
r10624 r10817 52 52 virtual ~Planet(); 53 53 54 virtual void tick(float dt) ;54 virtual void tick(float dt) override; 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 57 58 virtual void changedVisibility() ;58 virtual void changedVisibility() override; 59 59 60 60 inline void setMeshSource(const std::string& meshname) -
code/branches/cpp11_v2/src/modules/objects/Script.h
r9667 r10817 98 98 virtual ~Script(); 99 99 100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a Script object through XML.101 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates a port that can be used to channel events and react to them.100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a Script object through XML. 101 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates a port that can be used to channel events and react to them. 102 102 103 103 bool trigger(bool triggered, BaseObject* trigger); //!< Is called when an event comes in trough the event port. … … 168 168 { return this->forAll_; } 169 169 170 virtual void clientConnected(unsigned int clientId) ; //!< Callback that is called when a new client has connected.171 virtual void clientDisconnected(unsigned int clientid) {}170 virtual void clientConnected(unsigned int clientId) override; //!< Callback that is called when a new client has connected. 171 virtual void clientDisconnected(unsigned int clientid) override {} 172 172 173 173 private: -
code/branches/cpp11_v2/src/modules/objects/SpaceBoundaries.h
r10769 r10817 93 93 int getReaction(); 94 94 95 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;95 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 96 96 97 void tick(float dt) ;97 void tick(float dt) override; 98 98 99 99 private: -
code/branches/cpp11_v2/src/modules/objects/Turret.h
r10622 r10817 61 61 virtual ~Turret(); 62 62 63 virtual void rotatePitch(const Vector2& value) ;64 virtual void rotateYaw(const Vector2& value) ;65 virtual void rotateRoll(const Vector2& value) ;63 virtual void rotatePitch(const Vector2& value) override; 64 virtual void rotateYaw(const Vector2& value) override; 65 virtual void rotateRoll(const Vector2& value) override; 66 66 virtual float isInRange(const WorldEntity* target); 67 67 virtual void aimAtPosition(const Vector3 &position); 68 68 69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;70 virtual void tick(float dt) ;69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 70 virtual void tick(float dt) override; 71 71 72 72 /** @brief Sets the maximum distance the turret is allowed to shoot. @param radius The distance*/ -
code/branches/cpp11_v2/src/modules/overlays/FadeoutText.h
r9667 r10817 44 44 virtual ~FadeoutText() {} 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void tick(float dt) override; 48 48 49 49 inline void setDelay(float delay) … … 58 58 59 59 private: 60 virtual void changedColour() ;61 virtual void changedCaption() ;60 virtual void changedColour() override; 61 virtual void changedCaption() override; 62 62 63 63 void fadeout(); -
code/branches/cpp11_v2/src/modules/overlays/GUIOverlay.h
r9667 r10817 44 44 virtual ~GUIOverlay(); 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 void setGUIName(const std::string& name); 49 49 inline const std::string& getGUIName() const { return this->guiName_; } 50 50 51 virtual void changedVisibility() ;52 virtual void changedOwner() ;51 virtual void changedVisibility() override; 52 virtual void changedOwner() override; 53 53 54 54 private: -
code/branches/cpp11_v2/src/modules/overlays/OverlayText.h
r9667 r10817 52 52 virtual ~OverlayText(); 53 53 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 55 55 56 56 void setCaption(const std::string& caption); … … 76 76 77 77 protected: 78 virtual void sizeChanged() ;78 virtual void sizeChanged() override; 79 79 virtual void changedColour() {} 80 80 virtual void changedCaption() {} -
code/branches/cpp11_v2/src/modules/overlays/debugging/DebugFPSText.h
r9667 r10817 43 43 virtual ~DebugFPSText(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/modules/overlays/debugging/DebugPositionText.h
r9943 r10817 43 43 virtual ~DebugPositionText(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/modules/overlays/debugging/DebugRTRText.h
r9667 r10817 43 43 virtual ~DebugRTRText(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 }; 47 47 } -
code/branches/cpp11_v2/src/modules/overlays/hud/AnnounceMessage.h
r9667 r10817 43 43 virtual ~AnnounceMessage() {} 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void announcemessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void announcemessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/ChatOverlay.h
r9667 r10817 49 49 50 50 protected: 51 virtual void incomingChat(const std::string& message, const std::string& name) ;51 virtual void incomingChat(const std::string& message, const std::string& name) override; 52 52 53 53 std::list<Ogre::DisplayString> messages_; -
code/branches/cpp11_v2/src/modules/overlays/hud/CountDown.h
r9943 r10817 44 44 virtual ~CountDown(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;48 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 virtual void tick(float dt) override; 49 49 50 50 inline void setCounter(float value) -
code/branches/cpp11_v2/src/modules/overlays/hud/DeathMessage.h
r9667 r10817 43 43 virtual ~DeathMessage() {} 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void deathmessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void deathmessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/GametypeFadingMessage.h
r9667 r10817 43 43 virtual ~GametypeFadingMessage(); 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void fadingmessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void fadingmessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/GametypeStaticMessage.h
r9667 r10817 46 46 virtual ~GametypeStaticMessage(); 47 47 48 virtual void changedOwner() ;48 virtual void changedOwner() override; 49 49 50 void staticmessage(const GametypeInfo* gtinfo, const std::string& message, const ColourValue& colour) ;50 void staticmessage(const GametypeInfo* gtinfo, const std::string& message, const ColourValue& colour) override; 51 51 52 52 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDBar.h
r9667 r10817 51 51 virtual ~BarColour() { } 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 55 void setColour(const ColourValue& colour) { this->colour_ = colour; } … … 71 71 virtual ~HUDBar(); 72 72 73 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;73 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 74 74 75 75 void clearColours(); -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDBoostBar.h
r9667 r10817 43 43 virtual ~HUDBoostBar(); 44 44 45 virtual void tick(float dt) ;46 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void changedOwner() override; 47 47 48 48 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDEnemyHealthBar.cc
r10768 r10817 30 30 31 31 #include "core/config/ConfigValueIncludes.h" 32 #include "core/CoreIncludes.h" 32 33 #include "worldentities/pawns/Pawn.h" 33 34 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDEnemyHealthBar.h
r9667 r10817 41 41 42 42 void setConfigValues(); 43 virtual void tick(float dt) ;43 virtual void tick(float dt) override; 44 44 45 void changedOwner() ;45 void changedOwner() override; 46 46 47 47 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDHealthBar.h
r10624 r10817 45 45 virtual ~HUDHealthBar(); 46 46 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void tick(float dt) ;49 virtual void changedOwner() ;50 virtual void changedOverlayGroup() ;51 virtual void changedVisibility() ;52 virtual void changedName() ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 virtual void tick(float dt) override; 49 virtual void changedOwner() override; 50 virtual void changedOverlayGroup() override; 51 virtual void changedVisibility() override; 52 virtual void changedName() override; 53 53 54 54 inline void setTextFont(const std::string& font) -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDNavigation.h
r10769 r10817 51 51 void setConfigValues(); 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void tick(float dt) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 virtual void tick(float dt) override; 55 55 56 56 // RadarListener interface 57 virtual void addObject(RadarViewable* object) ;58 virtual void removeObject(RadarViewable* viewable) ;59 virtual void objectChanged(RadarViewable* viewable) ;57 virtual void addObject(RadarViewable* object) override; 58 virtual void removeObject(RadarViewable* viewable) override; 59 virtual void objectChanged(RadarViewable* viewable) override; 60 60 61 virtual void changedOwner() ;62 virtual void sizeChanged() ;63 virtual void angleChanged() { }64 virtual void positionChanged() { }65 virtual void radarTick(float dt) {}61 virtual void changedOwner() override; 62 virtual void sizeChanged() override; 63 virtual void angleChanged() override { } 64 virtual void positionChanged() override { } 65 virtual void radarTick(float dt) override {} 66 66 67 inline float getRadarSensitivity() const 67 inline float getRadarSensitivity() const override 68 68 { return 1.0f; } 69 69 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDRadar.h
r9945 r10817 50 50 virtual ~HUDRadar(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void changedOwner() ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 virtual void changedOwner() override; 54 54 void setConfigValues(); 55 55 … … 80 80 void set3DMaterialBack(std::string material3DBack) { this->material3DBack_ = material3DBack; } 81 81 82 float getRadarSensitivity() const { return this->sensitivity_; }82 float getRadarSensitivity() const override { return this->sensitivity_; } 83 83 // used also by RadarListener interface! 84 84 void setRadarSensitivity(float sensitivity) { this->sensitivity_ = sensitivity; } … … 89 89 90 90 // RadarListener interface 91 virtual void addObject(RadarViewable* viewable) ;92 virtual void removeObject(RadarViewable* viewable) ;93 virtual void objectChanged( RadarViewable* rv ) ;94 void radarTick(float dt) ;91 virtual void addObject(RadarViewable* viewable) override; 92 virtual void removeObject(RadarViewable* viewable) override; 93 virtual void objectChanged( RadarViewable* rv ) override; 94 void radarTick(float dt) override; 95 95 bool showObject( RadarViewable* rv ); //!< Do not display an object on radar, if showObject(.) is false. 96 96 -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDSpeedBar.h
r9667 r10817 44 44 virtual ~HUDSpeedBar(); 45 45 46 virtual void tick(float dt) ;47 virtual void changedOwner() ;46 virtual void tick(float dt) override; 47 virtual void changedOwner() override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/HUDTimer.h
r9667 r10817 43 43 virtual ~HUDTimer(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 47 virtual void changedOwner() ;47 virtual void changedOwner() override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/KillMessage.h
r9667 r10817 43 43 virtual ~KillMessage() {} 44 44 45 virtual void changedOwner() ;45 virtual void changedOwner() override; 46 46 47 void killmessage(const GametypeInfo* gtinfo, const std::string& message) ;47 void killmessage(const GametypeInfo* gtinfo, const std::string& message) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/LastManStandingInfos.h
r9667 r10817 43 43 virtual ~LastManStandingInfos(); 44 44 45 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 48 49 49 inline void setShowLives(bool value) -
code/branches/cpp11_v2/src/modules/overlays/hud/LastTeamStandingInfos.h
r9667 r10817 43 43 virtual ~LastTeamStandingInfos(); 44 44 45 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 48 49 49 inline void setShowLives(bool value) -
code/branches/cpp11_v2/src/modules/overlays/hud/PauseNotice.h
r9667 r10817 42 42 PauseNotice(Context* context); 43 43 44 virtual void changedOwner() ;44 virtual void changedOwner() override; 45 45 46 46 protected: 47 virtual void changedTimeFactor(float factor_new, float factor_old) ;47 virtual void changedTimeFactor(float factor_new, float factor_old) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/modules/overlays/hud/TeamBaseMatchScore.h
r9667 r10817 43 43 virtual ~TeamBaseMatchScore(); 44 44 45 virtual void tick(float dt) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void changedOwner() ;45 virtual void tick(float dt) override; 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 virtual void changedOwner() override; 48 48 49 49 inline void setShowBases(bool value) -
code/branches/cpp11_v2/src/modules/overlays/stats/Scoreboard.h
r9667 r10817 44 44 virtual ~Scoreboard(); 45 45 46 virtual void tick(float dt) ;46 virtual void tick(float dt) override; 47 47 48 48 inline void setCreateLines(CreateLines* cl) … … 51 51 { return this->createlines_; } 52 52 53 virtual void changedVisibility() ;53 virtual void changedVisibility() override; 54 54 55 55 private: // functions -
code/branches/cpp11_v2/src/modules/overlays/stats/Stats.h
r9667 r10817 46 46 void setConfigValues(); 47 47 48 virtual void tick(float dt) ;48 virtual void tick(float dt) override; 49 49 50 50 private: // variables -
code/branches/cpp11_v2/src/modules/pickup/CollectiblePickup.h
r10765 r10817 61 61 virtual ~CollectiblePickup(); //! Destructor. 62 62 63 virtual void changedUsed(void) ; //!< Is called when the pickup has transited from used to unused or the other way around.64 virtual void changedPickedUp(void) ; //!< Is called when the pickup has transited from picked up to dropped or the other way around.63 virtual void changedUsed(void) override; //!< Is called when the pickup has transited from used to unused or the other way around. 64 virtual void changedPickedUp(void) override; //!< Is called when the pickup has transited from picked up to dropped or the other way around. 65 65 66 66 /** -
code/branches/cpp11_v2/src/modules/pickup/Pickup.h
r9667 r10817 103 103 virtual ~Pickup(); //!< Destructor. 104 104 105 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;105 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 106 106 107 virtual const std::string& getRepresentationName() const 107 virtual const std::string& getRepresentationName() const override 108 108 { return this->representationName_; } 109 109 … … 149 149 { return this->getDurationType() == pickupDurationType::continuous; } 150 150 151 virtual void changedPickedUp(void) ; //!< Should be called when the pickup has transited from picked up to dropped or the other way around.151 virtual void changedPickedUp(void) override; //!< Should be called when the pickup has transited from picked up to dropped or the other way around. 152 152 153 153 protected: 154 virtual bool createSpawner(void) ; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.154 virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 155 155 156 156 /** -
code/branches/cpp11_v2/src/modules/pickup/PickupCollection.h
r9667 r10817 73 73 virtual ~PickupCollection(); //!< Destructor. 74 74 75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates an instance of this Class through XML.75 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates an instance of this Class through XML. 76 76 77 virtual void changedUsed(void) ; //!< Is called when the pickup has transited from used to unused or the other way around.78 virtual void changedCarrier(void) ; //!< Is called when the pickup has changed its PickupCarrier.79 virtual void changedPickedUp(void) ; //!< Is called when the pickup has transited from picked up to dropped or the other way around.77 virtual void changedUsed(void) override; //!< Is called when the pickup has transited from used to unused or the other way around. 78 virtual void changedCarrier(void) override; //!< Is called when the pickup has changed its PickupCarrier. 79 virtual void changedPickedUp(void) override; //!< Is called when the pickup has transited from picked up to dropped or the other way around. 80 80 81 virtual bool isTarget(const PickupCarrier* carrier) const ; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection.81 virtual bool isTarget(const PickupCarrier* carrier) const override; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection. 82 82 83 83 inline void setRepresentationName(const std::string& name) 84 84 { this->representationName_ = name; } 85 virtual const std::string& getRepresentationName() const 85 virtual const std::string& getRepresentationName() const override 86 86 { return this->representationName_; } 87 87 … … 98 98 99 99 protected: 100 virtual bool createSpawner(void) ; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.100 virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 101 101 102 102 private: -
code/branches/cpp11_v2/src/modules/pickup/PickupManager.h
r10769 r10817 117 117 PickupRepresentation* getRepresentation(const std::string& name); // tolua_export 118 118 119 virtual void pickupChangedUsed(Pickupable* pickup, bool used) ; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input used state.119 virtual void pickupChangedUsed(Pickupable* pickup, bool used) override; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input used state. 120 120 static void pickupChangedUsedNetwork(uint32_t pickup, bool inUse, bool usable, bool unusable); //!< Helper method to react to the change in the used status of a Pickupable. 121 virtual void pickupChangedPickedUp(Pickupable* pickup, bool pickedUp) ; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input pickedUp state.121 virtual void pickupChangedPickedUp(Pickupable* pickup, bool pickedUp) override; //!< Is called by the PickupListener to notify the PickupManager, that the input Pickupable has transited to the input pickedUp state. 122 122 static void pickupChangedPickedUpNetwork(uint32_t pickup, bool usable, uint32_t representationObjectId, const std::string& representationName, bool pickedUp); //!< Helper method to react to the change in the pickedUp status of a Pickupable. 123 123 -
code/branches/cpp11_v2/src/modules/pickup/PickupRepresentation.h
r10765 r10817 98 98 virtual ~PickupRepresentation(); //!< Destructor. 99 99 100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a PickupRepresentation object through XML.100 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a PickupRepresentation object through XML. 101 101 102 102 /** … … 129 129 inline const std::string& getInventoryRepresentation(void) const { return this->inventoryRepresentation_; } // tolua_export 130 130 131 virtual void changedName() ;131 virtual void changedName() override; 132 132 133 133 StaticEntity* createSpawnerRepresentation(PickupSpawner* spawner); //!< Create a spawnerRepresentation for a specific PickupSpawner. -
code/branches/cpp11_v2/src/modules/pickup/PickupSpawner.h
r9667 r10817 82 82 static PickupSpawner* createDroppedPickup(Context* context, Pickupable* pickup, PickupCarrier* carrier, float triggerDistance = 10.0); 83 83 84 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a PickupSpawner through XML.85 virtual void tick(float dt) ; //!< Tick, checks if any Pawn is close enough to trigger.84 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a PickupSpawner through XML. 85 virtual void tick(float dt) override; //!< Tick, checks if any Pawn is close enough to trigger. 86 86 87 87 /** -
code/branches/cpp11_v2/src/modules/pong/Pong.h
r9667 r10817 68 68 virtual ~Pong(); //!< Destructor. Cleans up, if initialized. 69 69 70 virtual void start() ; //!< Starts the Pong minigame.71 virtual void end() ; ///!< Ends the Pong minigame.70 virtual void start() override; //!< Starts the Pong minigame. 71 virtual void end() override; ///!< Ends the Pong minigame. 72 72 73 virtual void spawnPlayer(PlayerInfo* player) ; //!< Spawns the input player.73 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. 74 74 75 virtual void playerScored(PlayerInfo* player, int score = 1) ; //!< Is called when the player scored.75 virtual void playerScored(PlayerInfo* player, int score = 1) override; //!< Is called when the player scored. 76 76 77 77 /** … … 87 87 88 88 protected: 89 virtual void spawnPlayersIfRequested() ; //!< Spawns players, and fills the rest up with bots.89 virtual void spawnPlayersIfRequested() override; //!< Spawns players, and fills the rest up with bots. 90 90 91 91 void startBall(); //!< Starts the ball with some default speed. -
code/branches/cpp11_v2/src/modules/pong/PongAI.h
r10769 r10817 66 66 void setConfigValues(); 67 67 68 virtual void tick(float dt) ; //!< Implements the behavior of the PongAI (i.e. its intelligence).68 virtual void tick(float dt) override; //!< Implements the behavior of the PongAI (i.e. its intelligence). 69 69 70 70 /** -
code/branches/cpp11_v2/src/modules/pong/PongBall.h
r9939 r10817 63 63 virtual ~PongBall(); 64 64 65 virtual void tick(float dt) ;65 virtual void tick(float dt) override; 66 66 67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 68 68 69 69 /** -
code/branches/cpp11_v2/src/modules/pong/PongBat.h
r9667 r10817 60 60 virtual ~PongBat() {} 61 61 62 virtual void tick(float dt) ;62 virtual void tick(float dt) override; 63 63 64 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.65 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.64 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 65 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 66 66 67 virtual void changedPlayer() ; //!< Is called when the player changed.67 virtual void changedPlayer() override; //!< Is called when the player changed. 68 68 69 69 /** -
code/branches/cpp11_v2/src/modules/pong/PongCenterpoint.h
r10624 r10817 124 124 virtual ~PongCenterpoint() {} 125 125 126 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method to create a PongCenterpoint through XML.126 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a PongCenterpoint through XML. 127 127 128 128 /** -
code/branches/cpp11_v2/src/modules/pong/PongScore.h
r9939 r10817 60 60 virtual ~PongScore(); 61 61 62 virtual void tick(float dt) ; //!< Creates and sets the caption to be displayed by the PongScore.63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void changedOwner() ; //!< Is called when the owner changes.62 virtual void tick(float dt) override; //!< Creates and sets the caption to be displayed by the PongScore. 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 virtual void changedOwner() override; //!< Is called when the owner changes. 65 65 66 66 /** -
code/branches/cpp11_v2/src/modules/portals/PortalEndPoint.h
r9667 r10817 63 63 virtual ~PortalEndPoint(); 64 64 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;66 virtual void changedActivity(void) ;65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 66 virtual void changedActivity(void) override; 67 67 68 68 inline void setTarget(const std::string & target) //!< add types which are allowed to activate the PortalEndPoint 69 69 { this->trigger_->addTarget(target); } 70 70 71 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;71 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 72 72 static std::map<unsigned int, PortalEndPoint *> idMap_s; //!< Maps the id of each PortalEndPoint to a pointer to that PortalEndPoint 73 73 inline void setReenterDelay(unsigned int seconds) -
code/branches/cpp11_v2/src/modules/portals/PortalLink.h
r9667 r10817 56 56 PortalLink(Context* context); 57 57 virtual ~PortalLink(); 58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 59 59 60 60 inline void setFromID(unsigned int from) //!< set the ID of the PortalEndPoint which should act as the entrance of this link -
code/branches/cpp11_v2/src/modules/questsystem/GlobalQuest.h
r9667 r10817 93 93 virtual ~GlobalQuest(); 94 94 95 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a GlobalQuest object through XML.95 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a GlobalQuest object through XML. 96 96 97 virtual bool fail(PlayerInfo* player) ; //!< Fails the Quest.98 virtual bool complete(PlayerInfo* player) ; //!< Completes the Quest.97 virtual bool fail(PlayerInfo* player) override; //!< Fails the Quest. 98 virtual bool complete(PlayerInfo* player) override; //!< Completes the Quest. 99 99 100 100 protected: 101 virtual bool isStartable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be started.102 virtual bool isFailable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be failed.103 virtual bool isCompletable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be completed.101 virtual bool isStartable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be started. 102 virtual bool isFailable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be failed. 103 virtual bool isCompletable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be completed. 104 104 105 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const ; //!< Returns the status of the Quest for a specific player.105 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const override; //!< Returns the status of the Quest for a specific player. 106 106 107 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) ; //!< Sets the status for a specific player.107 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) override; //!< Sets the status for a specific player. 108 108 109 109 private: -
code/branches/cpp11_v2/src/modules/questsystem/LocalQuest.h
r9667 r10817 87 87 virtual ~LocalQuest(); 88 88 89 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a LocalQuest object through XML.89 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a LocalQuest object through XML. 90 90 91 virtual bool fail(PlayerInfo* player) ; //!< Fails the Quest.92 virtual bool complete(PlayerInfo* player) ; //!< Completes the Quest.91 virtual bool fail(PlayerInfo* player) override; //!< Fails the Quest. 92 virtual bool complete(PlayerInfo* player) override; //!< Completes the Quest. 93 93 94 94 protected: 95 virtual bool isStartable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be started.96 virtual bool isFailable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be failed.97 virtual bool isCompletable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be completed.95 virtual bool isStartable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be started. 96 virtual bool isFailable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be failed. 97 virtual bool isCompletable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be completed. 98 98 99 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const ; //!< Returns the status of the Quest for a specific player.100 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) ; //!< Sets the status for a specific player.99 virtual QuestStatus::Value getStatus(const PlayerInfo* player) const override; //!< Returns the status of the Quest for a specific player. 100 virtual bool setStatus(PlayerInfo* player, const QuestStatus::Value & status) override; //!< Sets the status for a specific player. 101 101 102 102 private: -
code/branches/cpp11_v2/src/modules/questsystem/Quest.h
r9667 r10817 85 85 virtual ~Quest(); 86 86 87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a Quest object through XML.87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a Quest object through XML. 88 88 89 89 /** -
code/branches/cpp11_v2/src/modules/questsystem/QuestDescription.h
r9667 r10817 67 67 virtual ~QuestDescription(); 68 68 69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestDescription object through XML.69 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestDescription object through XML. 70 70 71 71 // tolua_begin -
code/branches/cpp11_v2/src/modules/questsystem/QuestEffectBeacon.h
r9667 r10817 96 96 virtual ~QuestEffectBeacon(); 97 97 98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestEffectBeacon object through XML.99 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestEffectBeacon object through XML. 99 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 100 100 101 101 bool execute(bool bTriggered, BaseObject* trigger); //!< Executes the QuestEffects of the QuestEffectBeacon. -
code/branches/cpp11_v2/src/modules/questsystem/QuestHint.h
r9667 r10817 85 85 virtual ~QuestHint(); 86 86 87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestHint object through XML.87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestHint object through XML. 88 88 89 89 bool isActive(const PlayerInfo* player) const; //!< Returns true if the QuestHint is active for the input player. -
code/branches/cpp11_v2/src/modules/questsystem/QuestItem.h
r9667 r10817 63 63 virtual ~QuestItem(); 64 64 65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestItem object through XML.65 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestItem object through XML. 66 66 67 67 /** -
code/branches/cpp11_v2/src/modules/questsystem/QuestListener.h
r9667 r10817 90 90 virtual ~QuestListener(); 91 91 92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a QuestListener object through XML.92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a QuestListener object through XML. 93 93 94 94 static void advertiseStatusChange(std::list<QuestListener*> & listeners, const std::string & status); //!< Makes all QuestListener in the list aware that a certain status change has occured. -
code/branches/cpp11_v2/src/modules/questsystem/effects/AddQuest.h
r9667 r10817 62 62 virtual ~AddQuest(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a AddQuest object through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a AddQuest object through XML. 65 65 66 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.66 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 67 67 68 68 }; -
code/branches/cpp11_v2/src/modules/questsystem/effects/AddQuestHint.h
r9667 r10817 64 64 virtual ~AddQuestHint(); 65 65 66 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a AddQuestHint object through XML.66 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a AddQuestHint object through XML. 67 67 68 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.68 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 69 69 70 70 private: -
code/branches/cpp11_v2/src/modules/questsystem/effects/AddReward.h
r9667 r10817 68 68 virtual ~AddReward(); 69 69 70 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a AddReward object through XML.70 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a AddReward object through XML. 71 71 72 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.72 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 73 73 74 74 private: -
code/branches/cpp11_v2/src/modules/questsystem/effects/ChangeQuestStatus.h
r9667 r10817 59 59 virtual ~ChangeQuestStatus(); 60 60 61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a ChangeQuestStatus object through XML.61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a ChangeQuestStatus object through XML. 62 62 63 63 virtual bool invoke(PlayerInfo* player) = 0; //!< Invokes the QuestEffect. -
code/branches/cpp11_v2/src/modules/questsystem/effects/CompleteQuest.h
r9667 r10817 62 62 virtual ~CompleteQuest(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a CompleteQuest object through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a CompleteQuest object through XML. 65 65 66 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.66 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 67 67 68 68 }; -
code/branches/cpp11_v2/src/modules/questsystem/effects/FailQuest.h
r9667 r10817 62 62 virtual ~FailQuest(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a FailQuest object through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a FailQuest object through XML. 65 65 66 virtual bool invoke(PlayerInfo* player) ; //!< Invokes the QuestEffect.66 virtual bool invoke(PlayerInfo* player) override; //!< Invokes the QuestEffect. 67 67 68 68 }; -
code/branches/cpp11_v2/src/modules/tetris/Tetris.h
r10769 r10817 58 58 virtual ~Tetris(); //!< Destructor. Cleans up, if initialized. 59 59 60 virtual void start(void) ; //!< Starts the Tetris minigame.61 virtual void end(void) ; ///!< Ends the Tetris minigame.60 virtual void start(void) override; //!< Starts the Tetris minigame. 61 virtual void end(void) override; ///!< Ends the Tetris minigame. 62 62 63 virtual void tick(float dt) ;63 virtual void tick(float dt) override; 64 64 65 virtual void spawnPlayer(PlayerInfo* player) ; //!< Spawns the input player.66 virtual bool playerLeft(PlayerInfo* player) ;65 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. 66 virtual bool playerLeft(PlayerInfo* player) override; 67 67 68 68 void setCenterpoint(TetrisCenterpoint* center); … … 77 77 78 78 protected: 79 virtual void spawnPlayersIfRequested() ; //!< Spawns player.79 virtual void spawnPlayersIfRequested() override; //!< Spawns player. 80 80 81 81 -
code/branches/cpp11_v2/src/modules/tetris/TetrisBrick.h
r10262 r10817 57 57 virtual ~TetrisBrick() {} 58 58 59 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.60 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.61 virtual void changedPlayer() ; //!< Is called when the player changed.59 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 60 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 61 virtual void changedPlayer() override; //!< Is called when the player changed. 62 62 63 63 bool isValidMove(const Vector3& position, bool isRotation); -
code/branches/cpp11_v2/src/modules/tetris/TetrisCenterpoint.h
r10624 r10817 62 62 virtual ~TetrisCenterpoint() {} 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method to create a TetrisCenterpoint through XML.64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a TetrisCenterpoint through XML. 65 65 66 66 /** -
code/branches/cpp11_v2/src/modules/tetris/TetrisScore.h
r10262 r10817 60 60 virtual ~TetrisScore(); 61 61 62 virtual void tick(float dt) ; //!< Creates and sets the caption to be displayed by the TetrisScore.63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void changedOwner() ; //!< Is called when the owner changes.62 virtual void tick(float dt) override; //!< Creates and sets the caption to be displayed by the TetrisScore. 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 virtual void changedOwner() override; //!< Is called when the owner changes. 65 65 66 66 private: -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefense.h
r10769 r10817 53 53 virtual ~TowerDefense(); 54 54 void addTowerDefenseEnemy(int templatenr); 55 virtual void start() ; //<! The function is called when the gametype starts56 virtual void end() ;57 virtual void tick(float dt) ;58 virtual void spawnPlayer(PlayerInfo* player) ;55 virtual void start() override; //<! The function is called when the gametype starts 56 virtual void end() override; 57 virtual void tick(float dt) override; 58 virtual void spawnPlayer(PlayerInfo* player) override; 59 59 PlayerInfo* getPlayer(void) const; 60 60 int getCredit(){ return this->credit_; } -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseCenterpoint.h
r10629 r10817 52 52 virtual ~TowerDefenseCenterpoint() {} 53 53 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 55 55 56 56 /** -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseEnemy.h
r10629 r10817 37 37 //health gibt es unter: health_ 38 38 39 virtual void tick(float dt) ;39 virtual void tick(float dt) override; 40 40 virtual void damage(float damage, float healthdamage, float shielddamage, Pawn* originator); 41 41 -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseField.h
r10629 r10817 62 62 TowerDefenseField(Context* context); 63 63 virtual ~TowerDefenseField() {} 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 65 65 const bool isFree() const 66 66 { return type_==FREE; } -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseHUDController.h
r10258 r10817 53 53 54 54 55 virtual void tick(float dt) ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void changedOwner() ;55 virtual void tick(float dt) override; 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void changedOwner() override; 58 58 void setShowlives(bool temp) 59 59 { this->showlives = temp; } -
code/branches/cpp11_v2/src/modules/towerdefense/TowerDefenseSelecter.h
r10629 r10817 41 41 TowerDefenseSelecter(Context* context); //!< Constructor. Registers and initializes the object. 42 42 virtual ~TowerDefenseSelecter(); 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void tick(float dt) ;45 virtual void moveFrontBack(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.46 virtual void moveRightLeft(const Vector2& value) ; //!< Overloaded the function to steer the bat up and down.47 virtual void rotateYaw(const Vector2& value) ;48 virtual void rotatePitch(const Vector2& value) ;49 virtual void rotateRoll(const Vector2& value) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 virtual void tick(float dt) override; 45 virtual void moveFrontBack(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 46 virtual void moveRightLeft(const Vector2& value) override; //!< Overloaded the function to steer the bat up and down. 47 virtual void rotateYaw(const Vector2& value) override; 48 virtual void rotatePitch(const Vector2& value) override; 49 virtual void rotateRoll(const Vector2& value) override; 50 50 void fire(unsigned int firemode); 51 virtual void fired(unsigned int firemode) ;52 virtual void boost(bool bBoost) ;51 virtual void fired(unsigned int firemode) override; 52 virtual void boost(bool bBoost) override; 53 53 virtual void setSelectedPosition(TDCoordinate* newPos); 54 54 virtual void setSelectedPosition(int x, int y); -
code/branches/cpp11_v2/src/modules/weapons/IceGunFreezer.h
r10629 r10817 55 55 IceGunFreezer(Context* context); 56 56 virtual ~IceGunFreezer(); 57 virtual void tick(float dt) ;57 virtual void tick(float dt) override; 58 58 virtual void startFreezing(); 59 59 virtual void stopFreezing(); -
code/branches/cpp11_v2/src/modules/weapons/RocketController.cc
r10258 r10817 38 38 #include "projectiles/SimpleRocket.h" 39 39 #include "weaponmodes/SimpleRocketFire.h" 40 #include "core/CoreIncludes.h" 40 41 41 42 namespace orxonox -
code/branches/cpp11_v2/src/modules/weapons/RocketController.h
r9667 r10817 55 55 virtual ~RocketController(); 56 56 57 virtual void tick(float dt) ;57 virtual void tick(float dt) override; 58 58 /** 59 59 @brief Get the rocket that is controlled by this controller. -
code/branches/cpp11_v2/src/modules/weapons/projectiles/BillboardProjectile.h
r10629 r10817 61 61 virtual void setMaterial(const std::string& material); 62 62 virtual const std::string& getMaterial(); 63 virtual void changedVisibility() ;63 virtual void changedVisibility() override; 64 64 65 65 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/GravityBomb.h
r10622 r10817 41 41 GravityBomb(Context* context); 42 42 virtual ~GravityBomb(); 43 virtual void tick(float dt) ;43 virtual void tick(float dt) override; 44 44 45 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;45 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 46 46 void detonate(); 47 47 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/GravityBombField.h
r10622 r10817 39 39 GravityBombField(Context* context); 40 40 virtual ~GravityBombField(); 41 virtual void tick(float dt) ;41 virtual void tick(float dt) override; 42 42 virtual void destroy(); 43 43 -
code/branches/cpp11_v2/src/modules/weapons/projectiles/IceGunProjectile.h
r10629 r10817 62 62 63 63 protected: 64 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;64 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 65 65 private: 66 66 float freezeTime_; //The duration of the freezing effect on a target -
code/branches/cpp11_v2/src/modules/weapons/projectiles/LightningGunProjectile.h
r9667 r10817 58 58 virtual ~LightningGunProjectile() {} 59 59 60 virtual void setMaterial(const std::string& material) ;60 virtual void setMaterial(const std::string& material) override; 61 61 62 62 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/ParticleProjectile.h
r9667 r10817 53 53 ParticleProjectile(Context* context); 54 54 virtual ~ParticleProjectile(); 55 virtual void changedVisibility() ;55 virtual void changedVisibility() override; 56 56 57 57 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/Projectile.h
r10629 r10817 64 64 void setConfigValues(); 65 65 66 virtual void tick(float dt) ;67 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;66 virtual void tick(float dt) override; 67 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 68 68 69 69 protected: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/Rocket.h
r10216 r10817 62 62 virtual ~Rocket(); 63 63 64 virtual void tick(float dt) ; //!< Defines which actions the Rocket has to take in each tick.64 virtual void tick(float dt) override; //!< Defines which actions the Rocket has to take in each tick. 65 65 66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;67 virtual void destroyObject(void) ;66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 67 virtual void destroyObject(void) override; 68 68 void destructionEffect(); 69 69 70 virtual void moveFrontBack(const Vector2& value) {}71 virtual void moveRightLeft(const Vector2& value) {}72 virtual void moveUpDown(const Vector2& value) {}70 virtual void moveFrontBack(const Vector2& value) override {} 71 virtual void moveRightLeft(const Vector2& value) override {} 72 virtual void moveUpDown(const Vector2& value) override {} 73 73 74 virtual void rotateYaw(const Vector2& value) ;75 virtual void rotatePitch(const Vector2& value) ;76 virtual void rotateRoll(const Vector2& value) ;74 virtual void rotateYaw(const Vector2& value) override; 75 virtual void rotatePitch(const Vector2& value) override; 76 virtual void rotateRoll(const Vector2& value) override; 77 77 78 78 /** … … 114 114 { this->rotateRoll(Vector2(value, 0)); } 115 115 116 virtual void setShooter(Pawn* shooter) ;116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) ;118 virtual void fired(unsigned int firemode) override; 119 119 120 120 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/RocketOld.h
r10622 r10817 62 62 virtual ~RocketOld(); 63 63 64 virtual void tick(float dt) ; //!< Defines which actions the RocketOld has to take in each tick.64 virtual void tick(float dt) override; //!< Defines which actions the RocketOld has to take in each tick. 65 65 66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;67 virtual void destroyObject(void) ;66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 67 virtual void destroyObject(void) override; 68 68 void destructionEffect(); 69 69 70 virtual void moveFrontBack(const Vector2& value) {}71 virtual void moveRightLeft(const Vector2& value) {}72 virtual void moveUpDown(const Vector2& value) {}70 virtual void moveFrontBack(const Vector2& value) override {} 71 virtual void moveRightLeft(const Vector2& value) override {} 72 virtual void moveUpDown(const Vector2& value) override {} 73 73 74 virtual void rotateYaw(const Vector2& value) ;75 virtual void rotatePitch(const Vector2& value) ;76 virtual void rotateRoll(const Vector2& value) ;74 virtual void rotateYaw(const Vector2& value) override; 75 virtual void rotatePitch(const Vector2& value) override; 76 virtual void rotateRoll(const Vector2& value) override; 77 77 78 78 /** … … 114 114 { this->rotateRoll(Vector2(value, 0)); } 115 115 116 virtual void setShooter(Pawn* shooter) ;116 virtual void setShooter(Pawn* shooter) override; 117 117 118 virtual void fired(unsigned int firemode) ;118 virtual void fired(unsigned int firemode) override; 119 119 120 120 private: -
code/branches/cpp11_v2/src/modules/weapons/projectiles/SimpleRocket.h
r10216 r10817 62 62 SimpleRocket(Context* context); 63 63 virtual ~SimpleRocket(); 64 virtual void tick(float dt) ;64 virtual void tick(float dt) override; 65 65 66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;66 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 67 67 68 68 void disableFire(); //!< Method to disable the fire and stop all acceleration 69 69 70 virtual void moveFrontBack(const Vector2& value) {}71 virtual void moveRightLeft(const Vector2& value) {}72 virtual void moveUpDown(const Vector2& value) {}70 virtual void moveFrontBack(const Vector2& value) override{} 71 virtual void moveRightLeft(const Vector2& value) override{} 72 virtual void moveUpDown(const Vector2& value) override{} 73 73 74 virtual void rotateYaw(const Vector2& value) ;75 virtual void rotatePitch(const Vector2& value) ;76 virtual void rotateRoll(const Vector2& value) ;74 virtual void rotateYaw(const Vector2& value) override; 75 virtual void rotatePitch(const Vector2& value) override; 76 virtual void rotateRoll(const Vector2& value) override; 77 77 void setDestroy(); 78 78 … … 115 115 { this->rotateRoll(Vector2(value, 0)); } 116 116 117 virtual void setShooter(Pawn* shooter) ;117 virtual void setShooter(Pawn* shooter) override; 118 118 119 119 inline bool hasFuel() const -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/EnergyDrink.h
r9667 r10817 57 57 virtual ~EnergyDrink() {} 58 58 59 virtual void fire() ;60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;59 virtual void fire() override; 60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 61 62 62 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/FusionFire.h
r9667 r10817 54 54 virtual ~FusionFire() {} 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/GravityBombFire.h
r10622 r10817 34 34 virtual ~GravityBombFire(); 35 35 36 virtual void fire() ;36 virtual void fire() override; 37 37 38 38 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/HsW01.h
r9945 r10817 56 56 virtual ~HsW01(); 57 57 58 virtual void fire() ;59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void fire() override; 59 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 60 60 61 61 protected: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/IceGun.h
r10629 r10817 54 54 virtual ~IceGun(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void fire() ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void fire() override; 58 58 59 59 inline void setFreezeTime(float freezeTime) -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/LaserFire.h
r9667 r10817 54 54 virtual ~LaserFire() {} 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/LightningGun.h
r9667 r10817 54 54 virtual ~LightningGun(); 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/RocketFire.h
r9667 r10817 54 54 virtual ~RocketFire(); 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/RocketFireOld.h
r10622 r10817 54 54 virtual ~RocketFireOld(); 55 55 56 virtual void fire() ;56 virtual void fire() override; 57 57 58 58 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/SimpleRocketFire.h
r9667 r10817 53 53 virtual ~SimpleRocketFire(); 54 54 void deactivateFire(); 55 virtual void fire() ;55 virtual void fire() override; 56 56 57 57 private: -
code/branches/cpp11_v2/src/modules/weapons/weaponmodes/SplitGun.h
r10629 r10817 54 54 virtual ~SplitGun(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void fire() ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void fire() override; 58 58 59 59 inline void setNumberOfSplits(int numberOfSplits) -
code/branches/cpp11_v2/src/orxonox/Level.h
r10624 r10817 47 47 virtual ~Level(); 48 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 51 51 void playerEntered(PlayerInfo* player); -
code/branches/cpp11_v2/src/orxonox/LevelInfo.h
r9667 r10817 207 207 virtual ~LevelInfo(); 208 208 209 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Creates a LevelInfo object through XML.209 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Creates a LevelInfo object through XML. 210 210 211 211 /** -
code/branches/cpp11_v2/src/orxonox/PlayerManager.h
r5966 r10817 50 50 { return this->clients_; } 51 51 52 void clientConnected(unsigned int clientID) ;53 void clientDisconnected(unsigned int clientID) ;52 void clientConnected(unsigned int clientID) override; 53 void clientDisconnected(unsigned int clientID) override; 54 54 void disconnectAllClients(); 55 55 -
code/branches/cpp11_v2/src/orxonox/Radar.h
r9667 r10817 54 54 virtual ~Radar(); 55 55 56 virtual void tick(float dt) ;56 virtual void tick(float dt) override; 57 57 58 58 const RadarViewable* getFocus(); -
code/branches/cpp11_v2/src/orxonox/Scene.h
r10768 r10817 51 51 virtual ~Scene(); 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 void registerVariables(); 55 55 … … 79 79 { return this->radar_; } 80 80 81 inline virtual uint32_t getSceneID() const { return this->getObjectID(); }81 inline virtual uint32_t getSceneID() const override { return this->getObjectID(); } 82 82 83 virtual void tick(float dt) ;83 virtual void tick(float dt) override; 84 84 85 85 private: -
code/branches/cpp11_v2/src/orxonox/chat/ChatHistory.h
r10624 r10817 82 82 * \param senderID Identification number of the sender 83 83 */ 84 virtual void incomingChat(const std::string& message, const std::string& name) ;84 virtual void incomingChat(const std::string& message, const std::string& name) override; 85 85 86 86 /** Synchronize logfile onto the hard drive -
code/branches/cpp11_v2/src/orxonox/chat/ChatInputHandler.h
r9675 r10817 125 125 * history window of the full chat window) 126 126 */ 127 void incomingChat(const std::string& message, const std::string& name) ;127 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/chat/ChatManager.h
r8858 r10817 55 55 ChatManager(const ChatManager&); 56 56 57 virtual void incomingChat(const std::string& message, unsigned int sourceID) ;57 virtual void incomingChat(const std::string& message, unsigned int sourceID) override; 58 58 59 59 static ChatManager* singletonPtr_s; -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CollisionShape.h
r10765 r10817 61 61 virtual ~CollisionShape(); 62 62 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 64 65 65 /** -
code/branches/cpp11_v2/src/orxonox/collisionshapes/CompoundCollisionShape.h
r10768 r10817 61 61 virtual ~CompoundCollisionShape(); 62 62 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 64 65 65 void attach(CollisionShape* shape); … … 70 70 void updateAttachedShape(CollisionShape* shape); 71 71 72 virtual void changedScale() ;72 virtual void changedScale() override; 73 73 74 74 private: 75 75 void updatePublicShape(); 76 inline virtual btCollisionShape* createNewShape() const 76 inline virtual btCollisionShape* createNewShape() const override 77 77 { assert(false); return nullptr; } 78 78 -
code/branches/cpp11_v2/src/orxonox/collisionshapes/WorldEntityCollisionShape.h
r10624 r10817 46 46 47 47 protected: 48 virtual void updateParent() ;48 virtual void updateParent() override; 49 49 50 50 private: 51 void parentChanged() ;51 void parentChanged() override; 52 52 53 53 WorldEntity* worldEntityOwner_; -
code/branches/cpp11_v2/src/orxonox/controllers/AIController.h
r9667 r10817 44 44 virtual ~AIController(); 45 45 46 virtual void tick(float dt) ; //<! Carrying out the targets set in action().46 virtual void tick(float dt) override; //<! Carrying out the targets set in action(). 47 47 48 48 protected: -
code/branches/cpp11_v2/src/orxonox/controllers/ArtificialController.h
r10769 r10817 42 42 virtual ~ArtificialController(); 43 43 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 46 46 void abandonTarget(Pawn* target); 47 47 48 virtual void changedControllableEntity() ;48 virtual void changedControllableEntity() override; 49 49 50 50 virtual void doFire(); -
code/branches/cpp11_v2/src/orxonox/controllers/Controller.h
r9797 r10817 45 45 Controller(Context* context); 46 46 virtual ~Controller(); 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 inline void setPlayer(PlayerInfo* player) 49 49 { this->player_ = player; } -
code/branches/cpp11_v2/src/orxonox/controllers/ControllerDirector.h
r10622 r10817 43 43 virtual ~ControllerDirector() { } 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 bool party(bool bTriggered, BaseObject* trigger); 47 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 49 49 inline void setScriptName(const std::string& name) { this->scriptname_ = name; } -
code/branches/cpp11_v2/src/orxonox/controllers/DroneController.h
r9667 r10817 53 53 virtual ~DroneController(); 54 54 55 virtual void tick(float dt) ; //!< The controlling happens here. This method defines what the controller has to do each tick.55 virtual void tick(float dt) override; //!< The controlling happens here. This method defines what the controller has to do each tick. 56 56 57 57 void setOwner(Pawn* owner); -
code/branches/cpp11_v2/src/orxonox/controllers/FormationController.h
r10631 r10817 50 50 virtual ~FormationController(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 53 54 54 … … 93 93 { return this->formationMode_; } 94 94 95 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) ;95 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) override; 96 96 97 97 FormationController* getMaster( void ) { return myMaster_; } … … 99 99 FormationController* getSlave( void ) { return this->slaves_.back(); } 100 100 101 virtual void changedControllableEntity() ;101 virtual void changedControllableEntity() override; 102 102 103 103 protected: -
code/branches/cpp11_v2/src/orxonox/controllers/HumanController.h
r10624 r10817 47 47 virtual ~HumanController(); 48 48 49 virtual void tick(float dt) ;49 virtual void tick(float dt) override; 50 50 51 51 static void moveFrontBack(const Vector2& value); -
code/branches/cpp11_v2/src/orxonox/controllers/NewHumanController.h
r9667 r10817 45 45 virtual ~NewHumanController(); 46 46 47 virtual void tick(float dt) ;47 virtual void tick(float dt) override; 48 48 49 virtual void frontback(const Vector2& value) ;50 virtual void yaw(const Vector2& value) ;51 virtual void pitch(const Vector2& value) ;49 virtual void frontback(const Vector2& value) override; 50 virtual void yaw(const Vector2& value) override; 51 virtual void pitch(const Vector2& value) override; 52 52 53 53 static void accelerate(); 54 54 static void decelerate(); 55 55 56 virtual void doFire(unsigned int firemode) ;56 virtual void doFire(unsigned int firemode) override; 57 57 58 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) ;58 virtual void hit(Pawn* originator, btManifoldPoint& contactpoint, float damage) override; 59 59 60 60 static void unfire(); … … 65 65 static void changeMode(); 66 66 67 virtual void changedControllableEntity() ;68 virtual void doPauseControl() ;69 virtual void doResumeControl() ;67 virtual void changedControllableEntity() override; 68 virtual void doPauseControl() override; 69 virtual void doResumeControl() override; 70 70 71 71 float getCurrentYaw(){ return this->currentYaw_; } -
code/branches/cpp11_v2/src/orxonox/controllers/ScriptController.h
r10622 r10817 71 71 void setPlayer(PlayerInfo* player) { this->player_ = player; } 72 72 73 virtual void tick(float dt) ;73 virtual void tick(float dt) override; 74 74 75 75 // LUA interface -
code/branches/cpp11_v2/src/orxonox/controllers/WaypointController.h
r9667 r10817 44 44 virtual ~WaypointController(); 45 45 46 virtual void tick(float dt) ;46 virtual void tick(float dt) override; 47 47 48 48 protected: -
code/branches/cpp11_v2/src/orxonox/controllers/WaypointPatrolController.h
r9716 r10817 43 43 virtual ~WaypointPatrolController() {} 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void tick(float dt) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 virtual void tick(float dt) override; 47 47 48 48 inline void setAlertnessRadius(float radius) -
code/branches/cpp11_v2/src/orxonox/gamestates/GSClient.h
r7163 r10817 43 43 ~GSClient(); 44 44 45 void activate() ;46 void deactivate() ;47 void update(const Clock& time) ;45 void activate() override; 46 void deactivate() override; 47 void update(const Clock& time) override; 48 48 }; 49 49 } -
code/branches/cpp11_v2/src/orxonox/gamestates/GSGraphics.h
r6417 r10817 53 53 ~GSGraphics(); 54 54 55 void activate() ;56 void deactivate() ;57 void update(const Clock& time) ;55 void activate() override; 56 void deactivate() override; 57 void update(const Clock& time) override; 58 58 59 59 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSLevel.h
r10624 r10817 44 44 ~GSLevel(); 45 45 46 void activate() ;47 void deactivate() ;48 void update(const Clock& time) ;46 void activate() override; 47 void deactivate() override; 48 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
r9667 r10817 44 44 ~GSMainMenu(); 45 45 46 void activate() ;47 void deactivate() ;48 void update(const Clock& time) ;46 void activate() override; 47 void deactivate() override; 48 void update(const Clock& time) override; 49 49 50 50 void setConfigValues(); -
code/branches/cpp11_v2/src/orxonox/gamestates/GSMasterServer.h
r7801 r10817 45 45 ~GSMasterServer(); 46 46 47 void activate() ;48 void deactivate() ;49 void update(const Clock& time) ;47 void activate() override; 48 void deactivate() override; 49 void update(const Clock& time) override; 50 50 51 51 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSRoot.h
r8706 r10817 44 44 static void printObjects(); 45 45 46 void activate() ;47 void deactivate() ;48 void update(const Clock& time) ;46 void activate() override; 47 void deactivate() override; 48 void update(const Clock& time) override; 49 49 50 50 // this has to be public because proteced triggers a bug in msvc … … 59 59 60 60 protected: 61 virtual void changedTimeFactor(float factor_new, float factor_old) ;61 virtual void changedTimeFactor(float factor_new, float factor_old) override; 62 62 63 63 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSServer.h
r5929 r10817 43 43 ~GSServer(); 44 44 45 void activate() ;46 void deactivate() ;47 void update(const Clock& time) ;45 void activate() override; 46 void deactivate() override; 47 void update(const Clock& time) override; 48 48 49 49 private: -
code/branches/cpp11_v2/src/orxonox/gamestates/GSStandalone.h
r5929 r10817 41 41 ~GSStandalone(); 42 42 43 void activate() ;44 void deactivate() ;45 void update(const Clock& time) ;43 void activate() override; 44 void deactivate() override; 45 void update(const Clock& time) override; 46 46 47 47 private: -
code/branches/cpp11_v2/src/orxonox/gametypes/Asteroids.h
r10768 r10817 41 41 virtual ~Asteroids() {} 42 42 43 virtual void tick(float dt) ;43 virtual void tick(float dt) override; 44 44 45 virtual void start() ;46 virtual void end() ;45 virtual void start() override; 46 virtual void end() override; 47 47 48 48 inline void firstCheckpointReached(bool reached) … … 50 50 51 51 protected: 52 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;52 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 53 53 54 54 private: -
code/branches/cpp11_v2/src/orxonox/gametypes/Deathmatch.h
r10768 r10817 41 41 virtual ~Deathmatch() {} 42 42 43 virtual void start() ;44 virtual void end() ;45 virtual void playerEntered(PlayerInfo* player) ;46 virtual bool playerLeft(PlayerInfo* player) ;47 virtual bool playerChangedName(PlayerInfo* player) ;43 virtual void start() override; 44 virtual void end() override; 45 virtual void playerEntered(PlayerInfo* player) override; 46 virtual bool playerLeft(PlayerInfo* player) override; 47 virtual bool playerChangedName(PlayerInfo* player) override; 48 48 49 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;50 virtual void playerScored(PlayerInfo* player, int score = 1) ;49 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 50 virtual void playerScored(PlayerInfo* player, int score = 1) override; 51 51 }; 52 52 } -
code/branches/cpp11_v2/src/orxonox/gametypes/Dynamicmatch.h
r10768 r10817 64 64 bool tutorial; //goal: new players receive messages how the new gametype works - later it can be switched off. 65 65 66 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ; //ok - score function and management of parties67 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ; //ok - simple68 virtual void start() ;69 virtual void end() ; //Wie geht das mit der Punkteausgabe aendern? Z.B: Persoenliche Nachricht?70 virtual void playerEntered(PlayerInfo* player) ;71 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ;//is used to initialize the player's party and colour72 virtual bool playerLeft(PlayerInfo* player) ;73 virtual bool playerChangedName(PlayerInfo* player) ;//unchanged66 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; //ok - score function and management of parties 67 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; //ok - simple 68 virtual void start() override; 69 virtual void end() override; //Wie geht das mit der Punkteausgabe aendern? Z.B: Persoenliche Nachricht? 70 virtual void playerEntered(PlayerInfo* player) override; 71 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override;//is used to initialize the player's party and colour 72 virtual bool playerLeft(PlayerInfo* player) override; 73 virtual bool playerChangedName(PlayerInfo* player) override;//unchanged 74 74 75 75 /*virtual void instructions(); … … 78 78 void grantPigBoost(SpaceShip* spaceship); // Grant the piggy a boost. 79 79 void resetSpeedFactor(SpaceShip* spaceship); 80 void tick (float dt) ;// used to end the game81 SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const ;80 void tick (float dt) override;// used to end the game 81 SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const override; 82 82 83 83 -
code/branches/cpp11_v2/src/orxonox/gametypes/Gametype.h
r10768 r10817 76 76 void setConfigValues(); 77 77 78 virtual void tick(float dt) ;78 virtual void tick(float dt) override; 79 79 80 80 inline const GametypeInfo* getGametypeInfo() const … … 175 175 virtual void spawnDeadPlayersIfRequested(); 176 176 177 virtual GSLevelMementoState* exportMementoState() ;178 virtual void importMementoState(const std::vector<GSLevelMementoState*>& states) ;177 virtual GSLevelMementoState* exportMementoState() override; 178 virtual void importMementoState(const std::vector<GSLevelMementoState*>& states) override; 179 179 180 180 WeakPtr<GametypeInfo> gtinfo_; -
code/branches/cpp11_v2/src/orxonox/gametypes/LastManStanding.h
r10768 r10817 61 61 bool bHardPunishment; //!< Switches between damage and death as punishment. 62 62 float punishDamageRate; //!< Makes Damage adjustable. 63 virtual void spawnDeadPlayersIfRequested() ; //!< Prevents dead players to respawn.63 virtual void spawnDeadPlayersIfRequested() override; //!< Prevents dead players to respawn. 64 64 virtual int getMinLives(); //!< Returns minimum of each player's lives; players with 0 lives are skipped; 65 65 … … 69 69 void setConfigValues(); //!< Makes values configurable. 70 70 71 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ; //!< If a player shoot's an opponent, his punishment countdown will be resetted.72 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ; //!< Manages each players lives.71 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; //!< If a player shoot's an opponent, his punishment countdown will be resetted. 72 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; //!< Manages each players lives. 73 73 74 virtual void end() ; //!< Sends an end message.74 virtual void end() override; //!< Sends an end message. 75 75 int playerGetLives(PlayerInfo* player); //!< getFunction for the map "playerLives_". 76 76 int getNumPlayersAlive() const; //!< Returns the number of players that are still alive. 77 virtual void playerEntered(PlayerInfo* player) ; //!< Initializes values.78 virtual bool playerLeft(PlayerInfo* player) ; //!< Manages all local variables.79 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ; //!< Resets punishment time and respawn delay.77 virtual void playerEntered(PlayerInfo* player) override; //!< Initializes values. 78 virtual bool playerLeft(PlayerInfo* player) override; //!< Manages all local variables. 79 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override; //!< Resets punishment time and respawn delay. 80 80 81 81 void punishPlayer(PlayerInfo* player); //!< Function in order to kill a player. Punishment for hiding longer than "timeRemaining". 82 void tick (float dt) ; //!< used to end the game82 void tick (float dt) override; //!< used to end the game 83 83 }; 84 84 } -
code/branches/cpp11_v2/src/orxonox/gametypes/LastTeamStanding.h
r10768 r10817 67 67 std::map<PlayerInfo*, bool> inGame_; //!< Indicates each Player's state. 68 68 69 virtual void spawnDeadPlayersIfRequested() ; //!< Prevents dead players to respawn.69 virtual void spawnDeadPlayersIfRequested() override; //!< Prevents dead players to respawn. 70 70 virtual int getMinLives(); //!< Returns minimum of each player's lives; players with 0 lives are skipped; 71 71 … … 74 74 virtual ~LastTeamStanding(); //!< Default Destructor. 75 75 76 virtual void playerEntered(PlayerInfo* player) ; //!< Initializes values.77 virtual bool playerLeft(PlayerInfo* player) ; //!< Manages all local variables.76 virtual void playerEntered(PlayerInfo* player) override; //!< Initializes values. 77 virtual bool playerLeft(PlayerInfo* player) override; //!< Manages all local variables. 78 78 79 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ; //!< Manages each player's lost lives.80 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ; //!< If a player shoot's an opponent, his punishment countdown will be resetted.81 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ; //!< Resets punishment time and respawn delay.82 void tick (float dt) ; //!< used to end the game83 virtual void end() ; //!< Sends an end message.79 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; //!< Manages each player's lost lives. 80 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; //!< If a player shoot's an opponent, his punishment countdown will be resetted. 81 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override; //!< Resets punishment time and respawn delay. 82 void tick (float dt) override; //!< used to end the game 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". 85 85 int playerGetLives(PlayerInfo* player); //!< getFunction for the map "playerLives_". -
code/branches/cpp11_v2/src/orxonox/gametypes/Mission.h
r10768 r10817 42 42 virtual ~Mission() {} 43 43 44 virtual void tick(float dt) ;44 virtual void tick(float dt) override; 45 45 46 virtual void start() ;47 virtual void end() ;46 virtual void start() override; 47 virtual void end() override; 48 48 virtual void setTeams(); 49 virtual void addBots(unsigned int amount) {} //<! overwrite function in order to bypass the addbots command49 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 50 50 inline void setLives(unsigned int amount) 51 51 {this->lives_ = amount;} … … 58 58 59 59 protected: 60 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;60 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 61 61 bool missionAccomplished_; //<! indicates if player successfully finsihed the mission; 62 62 int lives_; //<! amount of player's lives <-> nr. of retries -
code/branches/cpp11_v2/src/orxonox/gametypes/TeamBaseMatch.h
r10768 r10817 44 44 virtual ~TeamBaseMatch() {} 45 45 46 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ;47 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator) ;46 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; 47 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator) override; 48 48 49 virtual void playerScored(PlayerInfo* player, int score = 1) ;49 virtual void playerScored(PlayerInfo* player, int score = 1) override; 50 50 virtual void showPoints(); 51 51 virtual void endGame(); -
code/branches/cpp11_v2/src/orxonox/gametypes/TeamDeathmatch.h
r10768 r10817 42 42 43 43 void setConfigValues(); 44 virtual void start() ;45 virtual void end() ;46 virtual void playerEntered(PlayerInfo* player) ;47 virtual bool playerLeft(PlayerInfo* player) ;48 virtual bool playerChangedName(PlayerInfo* player) ;44 virtual void start() override; 45 virtual void end() override; 46 virtual void playerEntered(PlayerInfo* player) override; 47 virtual bool playerLeft(PlayerInfo* player) override; 48 virtual bool playerChangedName(PlayerInfo* player) override; 49 49 50 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) ;51 virtual void playerScored(PlayerInfo* player, int score = 1) ;50 virtual void pawnKilled(Pawn* victim, Pawn* killer = nullptr) override; 51 virtual void playerScored(PlayerInfo* player, int score = 1) override; 52 52 protected: 53 53 int maxScore_; -
code/branches/cpp11_v2/src/orxonox/gametypes/TeamGametype.h
r10768 r10817 46 46 void setConfigValues(); 47 47 48 virtual void playerEntered(PlayerInfo* player) ;48 virtual void playerEntered(PlayerInfo* player) override; 49 49 virtual void findAndSetTeam(PlayerInfo* player); 50 virtual bool playerLeft(PlayerInfo* player) ;51 virtual void spawnDeadPlayersIfRequested() ; //!< Prevents players to respawn.50 virtual bool playerLeft(PlayerInfo* player) override; 51 virtual void spawnDeadPlayersIfRequested() override; //!< Prevents players to respawn. 52 52 53 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) ;54 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ;55 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ;53 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) override; 54 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; 55 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; 56 56 57 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) ;57 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) override; 58 58 59 59 … … 67 67 68 68 protected: 69 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const ;69 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const override; 70 70 bool pawnsAreInTheSameTeam(Pawn* pawn1, Pawn* pawn2); 71 71 -
code/branches/cpp11_v2/src/orxonox/gametypes/UnderAttack.h
r10768 r10817 43 43 44 44 void setConfigValues(); 45 void tick (float dt) ;45 void tick (float dt) override; 46 46 void addDestroyer(Destroyer* destroyer); 47 47 inline Destroyer* getDestroyer() const 48 48 { return this->destroyer_; } 49 49 50 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) ;51 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) ;52 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) ;53 virtual void playerEntered(PlayerInfo* player) ;50 virtual bool allowPawnHit(Pawn* victim, Pawn* originator = nullptr) override; 51 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator = nullptr) override; 52 virtual bool allowPawnDeath(Pawn* victim, Pawn* originator = nullptr) override; 53 virtual void playerEntered(PlayerInfo* player) override; 54 54 55 55 protected: -
code/branches/cpp11_v2/src/orxonox/graphics/AnimatedModel.h
r9667 r10817 44 44 virtual ~AnimatedModel(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 void registerVariables(); 48 48 … … 51 51 virtual void setAnimEnabled(bool enabled); 52 52 virtual void setAnimLoop(bool loop); 53 virtual void tick(float dt) ;53 virtual void tick(float dt) override; 54 54 virtual void changedMesh(); 55 55 -
code/branches/cpp11_v2/src/orxonox/graphics/Backlight.h
r9667 r10817 44 44 virtual ~Backlight(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 virtual void tick(float dt) ;49 virtual void changedVisibility() ;48 virtual void tick(float dt) override; 49 virtual void changedVisibility() override; 50 50 51 51 inline void setWidth(float width) … … 74 74 { return this->trailmaterial_; } 75 75 76 virtual void changedScale() ;76 virtual void changedScale() override; 77 77 78 78 protected: 79 virtual void changedTimeFactor(float factor_new, float factor_old) ;79 virtual void changedTimeFactor(float factor_new, float factor_old) override; 80 80 81 81 private: 82 82 void registerVariables(); 83 virtual void startturnonoff() ;84 virtual void stopturnonoff() ;85 virtual void poststopturnonoff() ;86 virtual void changedColour() ;83 virtual void startturnonoff() override; 84 virtual void stopturnonoff() override; 85 virtual void poststopturnonoff() override; 86 virtual void changedColour() override; 87 87 void update_width(); 88 88 void update_lifetime(); -
code/branches/cpp11_v2/src/orxonox/graphics/Billboard.h
r9667 r10817 47 47 virtual ~Billboard(); 48 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 51 virtual void changedVisibility() ;51 virtual void changedVisibility() override; 52 52 53 53 inline const BillboardSet& getBillboardSet() const … … 71 71 72 72 73 virtual void setTeamColour(const ColourValue& colour) 73 virtual void setTeamColour(const ColourValue& colour) override 74 74 { this->setColour(colour); } 75 75 -
code/branches/cpp11_v2/src/orxonox/graphics/BlinkingBillboard.h
r9667 r10817 44 44 virtual ~BlinkingBillboard(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 virtual void tick(float dt) ;48 virtual void tick(float dt) override; 49 49 50 50 inline void setAmplitude(float amplitude) -
code/branches/cpp11_v2/src/orxonox/graphics/Camera.h
r9667 r10817 50 50 51 51 void setConfigValues(); 52 virtual void tick(float dt) ;52 virtual void tick(float dt) override; 53 53 54 54 void requestFocus(); … … 72 72 void configvaluecallback_changedNearClipDistance(); 73 73 74 void windowResized(unsigned int newWidth, unsigned int newHeight) ;74 void windowResized(unsigned int newWidth, unsigned int newHeight) override; 75 75 76 76 Ogre::Camera* camera_; -
code/branches/cpp11_v2/src/orxonox/graphics/FadingBillboard.h
r9667 r10817 45 45 virtual ~FadingBillboard(); 46 46 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 48 48 49 virtual void tick(float dt) ;50 virtual void changedActivity() ;51 virtual void changedVisibility() ;49 virtual void tick(float dt) override; 50 virtual void changedActivity() override; 51 virtual void changedVisibility() override; 52 52 53 53 inline void setTurnOnTime(float turnontime) … … 69 69 virtual void stopturnonoff(); 70 70 virtual void poststopturnonoff(); 71 virtual void changedColour() ;71 virtual void changedColour() override; 72 72 73 73 float turnontime_; -
code/branches/cpp11_v2/src/orxonox/graphics/GlobalShader.h
r9667 r10817 44 44 virtual ~GlobalShader(); 45 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 virtual void changedVisibility() ;48 virtual void changedVisibility() override; 49 49 50 50 inline const Shader& getShader() const -
code/branches/cpp11_v2/src/orxonox/graphics/Light.h
r9667 r10817 56 56 virtual ~Light(); 57 57 58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 59 59 60 virtual void changedVisibility() ;60 virtual void changedVisibility() override; 61 61 62 62 inline Ogre::Light* getLight() … … 78 78 { return this->specular_; } 79 79 80 virtual void setTeamColour(const ColourValue& colour) 80 virtual void setTeamColour(const ColourValue& colour) override 81 81 { this->setDiffuseColour(colour); this->setSpecularColour(colour); } 82 82 -
code/branches/cpp11_v2/src/orxonox/graphics/MeshLodInformation.h
r9667 r10817 50 50 float getReductionRate(){ return this->reductionRate_; } 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 53 54 54 private: -
code/branches/cpp11_v2/src/orxonox/graphics/Model.h
r9667 r10817 46 46 void setConfigValues(); 47 47 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 49 49 50 virtual void changedVisibility() ;50 virtual void changedVisibility() override; 51 51 52 52 inline const Mesh& getMesh() const -
code/branches/cpp11_v2/src/orxonox/graphics/ParticleEmitter.h
r9950 r10817 43 43 virtual ~ParticleEmitter(); 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 virtual void changedVisibility() ;48 virtual void changedActivity() ;47 virtual void changedVisibility() override; 48 virtual void changedActivity() override; 49 49 50 50 inline ParticleInterface* getParticleInterface() const -
code/branches/cpp11_v2/src/orxonox/graphics/ParticleSpawner.h
r9667 r10817 43 43 virtual ~ParticleSpawner(); 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 virtual void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 inline void stop(bool bDestroy) -
code/branches/cpp11_v2/src/orxonox/infos/Bot.h
r9667 r10817 45 45 void setConfigValues(); 46 46 47 inline bool isInitialized() const 47 inline bool isInitialized() const override 48 48 { return true; } 49 inline float getPing() const 49 inline float getPing() const override 50 50 { return 0; } 51 inline float getPacketLossRatio() const 51 inline float getPacketLossRatio() const override 52 52 { return 0; } 53 53 -
code/branches/cpp11_v2/src/orxonox/infos/HumanPlayer.h
r10624 r10817 45 45 void setConfigValues(); 46 46 47 bool isInitialized() const ;48 float getPing() const ;49 float getPacketLossRatio() const ;47 bool isInitialized() const override; 48 float getPing() const override; 49 float getPacketLossRatio() const override; 50 50 51 51 void setClientID(unsigned int clientID); 52 52 53 virtual void switchGametype(Gametype* gametype) ;53 virtual void switchGametype(Gametype* gametype) override; 54 54 55 55 inline void setHumanHUDTemplate(const std::string& name) -
code/branches/cpp11_v2/src/orxonox/infos/PlayerInfo.h
r10769 r10817 44 44 virtual ~PlayerInfo(); 45 45 46 virtual void changedName() ;46 virtual void changedName() override; 47 47 virtual void switchGametype(Gametype* gametype); 48 48 -
code/branches/cpp11_v2/src/orxonox/interfaces/PickupCarrier.h
r10765 r10817 77 77 PickupCarrier(); //!< Constructor. 78 78 virtual ~PickupCarrier(); //!< Destructor. 79 void preDestroy(void) ; //!< Is called before the PickupCarrier is effectively destroyed.79 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/interfaces/Pickupable.h
r10624 r10817 144 144 145 145 protected: 146 virtual void preDestroy(void) ; //!< A method that is called by Destroyable::destroy() before the object is actually destroyed.146 virtual void preDestroy(void) override; //!< A method that is called by Destroyable::destroy() before the object is actually destroyed. 147 147 virtual void destroyPickup(void); //!< Destroys a Pickupable. 148 148 virtual void carrierDestroyed(void); //!< Is called by the PickupCarrier when it is being destroyed. … … 182 182 // For implementing the Rewardable interface: 183 183 public: 184 virtual bool reward(PlayerInfo* player) ; //!< Method to transcribe a Pickupable as a Rewardable to the player.184 virtual bool reward(PlayerInfo* player) override; //!< Method to transcribe a Pickupable as a Rewardable to the player. 185 185 186 186 }; -
code/branches/cpp11_v2/src/orxonox/items/Engine.h
r10765 r10817 59 59 virtual ~Engine(); 60 60 61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;61 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 62 62 void setConfigValues(); 63 63 -
code/branches/cpp11_v2/src/orxonox/items/MultiStateEngine.h
r9667 r10817 52 52 virtual ~MultiStateEngine(); 53 53 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 55 55 56 virtual void run(float dt) ;56 virtual void run(float dt) override; 57 57 58 virtual void addToSpaceShip(SpaceShip* ship) ;58 virtual void addToSpaceShip(SpaceShip* ship) override; 59 59 60 60 void addEffectContainer(EffectContainer* effect); -
code/branches/cpp11_v2/src/orxonox/items/PartDestructionEvent.h
r10262 r10817 100 100 virtual ~PartDestructionEvent(); 101 101 102 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;102 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 103 103 104 104 void execute(); -
code/branches/cpp11_v2/src/orxonox/items/ShipPart.h
r10624 r10817 47 47 virtual ~ShipPart(); 48 48 49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 50 51 51 virtual void handleHit(float damage, float healthdamage, float shielddamage, Pawn* originator); -
code/branches/cpp11_v2/src/orxonox/overlays/GUISheet.h
r9667 r10817 44 44 ~GUISheet(); 45 45 46 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;46 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 47 47 48 48 void show(); -
code/branches/cpp11_v2/src/orxonox/overlays/InGameConsole.h
r10624 r10817 53 53 void setConfigValues(); 54 54 55 void preUpdate(const Clock& time) ;56 void postUpdate(const Clock& time) { /*no action*/ }55 void preUpdate(const Clock& time) override; 56 void postUpdate(const Clock& time) override { /*no action*/ } 57 57 58 58 static void openConsole(); … … 65 65 void deactivate(); 66 66 67 void linesChanged() ;68 void lineAdded() ;69 void inputChanged() ;70 void cursorChanged() ;71 void executed() ;72 void exit() ;67 void linesChanged() override; 68 void lineAdded() override; 69 void inputChanged() override; 70 void cursorChanged() override; 71 void executed() override; 72 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 void windowResized(unsigned int newWidth, unsigned int newHeight) ;79 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
r9667 r10817 90 90 virtual ~OrxonoxOverlay(); 91 91 92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;93 94 virtual void changedName() ;92 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 93 94 virtual void changedName() override; 95 95 96 96 //! Shows the overlay with an detour to BaseObject::visibility_ … … 167 167 void setBackgroundColour(ColourValue colour); 168 168 169 virtual void changedVisibility() ;169 virtual void changedVisibility() override; 170 170 171 171 inline void setOwner(BaseObject* owner) … … 206 206 207 207 private: 208 void windowResized(unsigned int newWidth, unsigned int newHeight) ;208 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/overlays/OverlayGroup.h
r10769 r10817 58 58 ~OverlayGroup(); 59 59 60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 61 61 62 62 static void toggleVisibility(const std::string& name); … … 68 68 { return this->hudElements_; } 69 69 70 virtual void changedVisibility() ;70 virtual void changedVisibility() override; 71 71 72 72 void setOwner(BaseObject* owner); -
code/branches/cpp11_v2/src/orxonox/sound/AmbientSound.h
r9939 r10817 50 50 AmbientSound(); 51 51 52 void play() ;53 bool stop() ;54 void pause() ;52 void play() override; 53 bool stop() override; 54 void pause() override; 55 55 56 56 bool setAmbientSource(const std::string& source); … … 66 66 67 67 private: 68 void preDestroy() ;69 float getRealVolume() ;70 bool moodChanged(const std::string& mood) ;68 void preDestroy() override; 69 float getRealVolume() override; 70 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
r10771 r10817 68 68 ~SoundManager(); 69 69 70 void preUpdate(const Clock& time) ;71 void postUpdate(const Clock& time) { /*no action*/ }70 void preUpdate(const Clock& time) override; 71 void postUpdate(const Clock& time) override { /*no action*/ } 72 72 void setConfigValues(); 73 73 -
code/branches/cpp11_v2/src/orxonox/sound/WorldAmbientSound.h
r9939 r10817 50 50 virtual ~WorldAmbientSound(); 51 51 52 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;52 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 virtual void changedActivity() ;55 virtual void changedActivity() override; 56 56 57 57 void play(); -
code/branches/cpp11_v2/src/orxonox/sound/WorldSound.h
r9667 r10817 47 47 WorldSound(Context* context); 48 48 49 void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;50 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) ;51 void changedActivity() ;49 void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 50 void XMLEventPort(Element& xmlelement, XMLPort::Mode mode) override; 51 void changedActivity() override; 52 52 53 void tick(float dt) ;53 void tick(float dt) override; 54 54 55 55 protected: … … 58 58 private: 59 59 void registerVariables(); 60 void initialiseSource() ;61 float getRealVolume() ;60 void initialiseSource() override; 61 float getRealVolume() override; 62 62 }; 63 63 } -
code/branches/cpp11_v2/src/orxonox/weaponsystem/DefaultWeaponmodeLink.h
r9667 r10817 42 42 virtual ~DefaultWeaponmodeLink(); 43 43 44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;44 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 45 45 46 46 inline void setFiremode(const unsigned int firemode) -
code/branches/cpp11_v2/src/orxonox/weaponsystem/Weapon.h
r10650 r10817 50 50 virtual ~Weapon(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 53 53 54 54 void fire(unsigned int mode); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponMode.h
r10650 r10817 51 51 virtual ~WeaponMode(); 52 52 53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;53 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 54 54 55 55 bool fire(float* reloadTime); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponPack.h
r9667 r10817 44 44 virtual ~WeaponPack(); 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 void fire(unsigned int weaponmode); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSet.h
r9667 r10817 44 44 virtual ~WeaponSet(); 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 void fire(); -
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSlot.h
r10768 r10817 62 62 virtual ~WeaponSlot(); 63 63 64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 65 65 66 66 void attachWeapon(Weapon * weapon); -
code/branches/cpp11_v2/src/orxonox/worldentities/CameraPosition.h
r9667 r10817 41 41 virtual ~CameraPosition(); 42 42 43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;43 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 44 44 45 45 inline void setDrag(bool bDrag) -
code/branches/cpp11_v2/src/orxonox/worldentities/ControllableEntity.h
r10769 r10817 54 54 virtual ~ControllableEntity(); 55 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;57 virtual void tick(float dt) ;56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 57 virtual void tick(float dt) override; 58 58 void setConfigValues(); 59 59 … … 141 141 using MobileEntity::setAngularVelocity; 142 142 143 void setPosition(const Vector3& position) ;144 void setOrientation(const Quaternion& orientation) ;145 void setVelocity(const Vector3& velocity) ;146 void setAngularVelocity(const Vector3& velocity) ;143 void setPosition(const Vector3& position) override; 144 void setOrientation(const Quaternion& orientation) override; 145 void setVelocity(const Vector3& velocity) override; 146 void setAngularVelocity(const Vector3& velocity) override; 147 147 148 148 inline bool hasLocalController() const … … 177 177 178 178 protected: 179 virtual void preDestroy() ;179 virtual void preDestroy() override; 180 180 181 181 virtual void setPlayer(PlayerInfo* player); // don't call this directly, use friend class PlayerInfo instead … … 184 184 virtual void startLocalHumanControl(); 185 185 virtual void stopLocalHumanControl(); 186 virtual void parentChanged() ;186 virtual void parentChanged() override; 187 187 188 188 inline void setHudTemplate(const std::string& name) … … 214 214 215 215 // Bullet btMotionState related 216 void setWorldTransform(const btTransform& worldTrans) ;216 void setWorldTransform(const btTransform& worldTrans) override; 217 217 218 218 unsigned int server_overwrite_; -
code/branches/cpp11_v2/src/orxonox/worldentities/Drone.h
r9667 r10817 50 50 virtual ~Drone(); 51 51 52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a Drone through XML.53 virtual void tick(float dt) ; //!< Defines which actions the Drone has to take in each tick.52 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a Drone through XML. 53 virtual void tick(float dt) override; //!< Defines which actions the Drone has to take in each tick. 54 54 55 55 56 virtual void moveFrontBack(const Vector2& value) ;57 virtual void moveRightLeft(const Vector2& value) ;58 virtual void moveUpDown(const Vector2& value) ;56 virtual void moveFrontBack(const Vector2& value) override; 57 virtual void moveRightLeft(const Vector2& value) override; 58 virtual void moveUpDown(const Vector2& value) override; 59 59 60 virtual void rotateYaw(const Vector2& value) ;61 virtual void rotatePitch(const Vector2& value) ;62 virtual void rotateRoll(const Vector2& value) ;60 virtual void rotateYaw(const Vector2& value) override; 61 virtual void rotatePitch(const Vector2& value) override; 62 virtual void rotateRoll(const Vector2& value) override; 63 63 64 64 /** -
code/branches/cpp11_v2/src/orxonox/worldentities/EffectContainer.h
r9667 r10817 43 43 virtual ~EffectContainer(); 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 47 void setLuaState(LuaState* state, const std::string& functionName); -
code/branches/cpp11_v2/src/orxonox/worldentities/ExplosionChunk.h
r9667 r10817 43 43 virtual ~ExplosionChunk(); 44 44 45 virtual void tick(float dt) ;45 virtual void tick(float dt) override; 46 46 47 47 inline void setLOD(LODParticle::Value level) -
code/branches/cpp11_v2/src/orxonox/worldentities/MobileEntity.h
r10437 r10817 55 55 virtual ~MobileEntity(); 56 56 57 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;58 virtual void tick(float dt) ;57 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 58 virtual void tick(float dt) override; 59 59 60 virtual void setPosition(const Vector3& position) ;61 virtual void setOrientation(const Quaternion& orientation) ;60 virtual void setPosition(const Vector3& position) override; 61 virtual void setOrientation(const Quaternion& orientation) override; 62 62 63 63 virtual void setVelocity(const Vector3& velocity); 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 66 inline const Vector3& getVelocity() const override 67 67 { return this->linearVelocity_; } 68 68 /** … … 108 108 protected: 109 109 // Bullet btMotionState related 110 virtual void setWorldTransform(const btTransform& worldTrans) ;111 void getWorldTransform(btTransform& worldTrans) const ;110 virtual void setWorldTransform(const btTransform& worldTrans) override; 111 void getWorldTransform(btTransform& worldTrans) const override; 112 112 113 113 Vector3 linearAcceleration_; … … 117 117 118 118 private: 119 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const ;119 virtual bool isCollisionTypeLegal(WorldEntity::CollisionType type) const override; 120 120 }; 121 121 } -
code/branches/cpp11_v2/src/orxonox/worldentities/MovableEntity.h
r10216 r10817 46 46 virtual ~MovableEntity(); 47 47 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;49 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) ;48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 49 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint) override; 50 50 51 51 using WorldEntity::setPosition; 52 52 using WorldEntity::setOrientation; 53 53 54 inline void setPosition(const Vector3& position) 54 inline void setPosition(const Vector3& position) override 55 55 { MobileEntity::setPosition(position); this->overwrite_position_ = this->getPosition(); } 56 inline void setOrientation(const Quaternion& orientation) 56 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 void clientConnected(unsigned int clientID) ;82 void clientDisconnected(unsigned int clientID) ;81 void clientConnected(unsigned int clientID) override; 82 void clientDisconnected(unsigned int clientID) override; 83 83 void resynchronize(); 84 84 -
code/branches/cpp11_v2/src/orxonox/worldentities/SpawnPoint.h
r9667 r10817 44 44 virtual ~SpawnPoint() {} 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 inline void setSpawnClass(Identifier* identifier) -
code/branches/cpp11_v2/src/orxonox/worldentities/StaticEntity.h
r10437 r10817 55 55 using WorldEntity::setOrientation; 56 56 57 void setPosition(const Vector3& position) ;58 void setOrientation(const Quaternion& orientation) ;57 void setPosition(const Vector3& position) override; 58 void setOrientation(const Quaternion& orientation) override; 59 59 60 60 private: 61 61 void registerVariables(); 62 bool isCollisionTypeLegal(CollisionType type) const ;62 bool isCollisionTypeLegal(CollisionType type) const override; 63 63 64 64 // network callbacks … … 69 69 70 70 // Bullet btMotionState related 71 void setWorldTransform(const btTransform& worldTrans) ;72 void getWorldTransform(btTransform& worldTrans) const ;71 void setWorldTransform(const btTransform& worldTrans) override; 72 void getWorldTransform(btTransform& worldTrans) const override; 73 73 }; 74 74 } -
code/branches/cpp11_v2/src/orxonox/worldentities/TeamSpawnPoint.h
r9667 r10817 43 43 virtual ~TeamSpawnPoint() {} 44 44 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 46 46 47 47 void setTeamNumber(unsigned int team) -
code/branches/cpp11_v2/src/orxonox/worldentities/WorldEntity.h
r10726 r10817 96 96 virtual ~WorldEntity(); 97 97 98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;98 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 99 99 100 100 inline const Ogre::SceneNode* getNode() const … … 108 108 static const Vector3 UP; 109 109 110 virtual void changedActivity(void) ;111 virtual void changedVisibility(void) ;110 virtual void changedActivity(void) override; 111 virtual void changedVisibility(void) override; 112 112 113 113 virtual void setPosition(const Vector3& position) = 0; -
code/branches/cpp11_v2/src/orxonox/worldentities/pawns/Pawn.h
r10768 r10817 61 61 virtual ~Pawn(); 62 62 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ;64 virtual void tick(float dt) ;63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; 64 virtual void tick(float dt) override; 65 65 66 66 inline bool isAlive() const … … 143 143 virtual void kill(); 144 144 145 virtual void fired(unsigned int firemode) ;146 virtual void reload() ;145 virtual void fired(unsigned int firemode) override; 146 virtual void reload() override; 147 147 virtual void postSpawn(); 148 148 … … 179 179 180 180 181 virtual void startLocalHumanControl() ;181 virtual void startLocalHumanControl() override; 182 182 183 183 void setAimPosition( Vector3 position ) … … 186 186 { return this->aimPosition_; } 187 187 188 virtual const Vector3& getCarrierPosition(void) const 188 virtual const Vector3& getCarrierPosition(void) const override 189 189 { return this->getWorldPosition(); }; 190 190 191 virtual void changedVisibility() ;191 virtual void changedVisibility() override; 192 192 193 193 void setExplosionSound(const std::string& engineSound); … … 195 195 196 196 protected: 197 virtual void preDestroy() ;198 199 virtual void setPlayer(PlayerInfo* player) ;200 virtual void removePlayer() ;197 virtual void preDestroy() override; 198 199 virtual void setPlayer(PlayerInfo* player) override; 200 virtual void removePlayer() override; 201 201 202 202 virtual void death(); … … 212 212 bool bAlive_; 213 213 214 virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const 214 virtual std::vector<PickupCarrier*>* getCarrierChildren(void) const override 215 215 { return new std::vector<PickupCarrier*>(); } 216 virtual PickupCarrier* getCarrierParent(void) const 216 virtual PickupCarrier* getCarrierParent(void) const override 217 217 { return nullptr; } 218 218
Note: See TracChangeset
for help on using the changeset viewer.