Changeset 3144 for code/branches
- Timestamp:
- Jun 10, 2009, 10:58:53 PM (15 years ago)
- Location:
- code/branches/pch/src/orxonox/overlays
- Files:
-
- 48 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/overlays/FadeoutText.cc
r3110 r3144 30 30 31 31 #include <OgreTextAreaOverlayElement.h> 32 32 #include "util/Math.h" 33 33 #include "core/CoreIncludes.h" 34 34 #include "core/XMLPort.h" -
code/branches/pch/src/orxonox/overlays/FadeoutText.h
r3099 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "tools/Timer.h" 35 #include "objects/Tickable.h" 34 36 #include "overlays/OverlayText.h" 35 #include "objects/Tickable.h"36 #include "tools/Timer.h"37 37 38 38 namespace orxonox -
code/branches/pch/src/orxonox/overlays/GUIOverlay.cc
r3110 r3144 28 28 29 29 #include "GUIOverlay.h" 30 30 31 #include <string> 31 32 #include <sstream> 33 32 34 #include "core/input/InputManager.h" 33 34 #include "../gui/GUIManager.h" 35 #include "core/CoreIncludes.h" 36 #include "core/XMLPort.h" 37 #include "gui/GUIManager.h" 35 38 36 39 namespace orxonox … … 53 56 XMLPortParam(GUIOverlay, "guiname", setGUIName, getGUIName, xmlElement, mode); 54 57 55 GUIManager::getInstance Ptr()->registerOverlay(this->guiName_, this);58 GUIManager::getInstance().registerOverlay(this->guiName_, this); 56 59 } 57 60 … … 66 69 out << (long)this; 67 70 str = out.str(); 68 GUIManager::getInstance Ptr()->executeCode("showCursor()");71 GUIManager::getInstance().executeCode("showCursor()"); 69 72 InputManager::getInstance().requestEnterState("guiMouseOnly"); 70 GUIManager::getInstance Ptr()->executeCode("showGUI(\"" + this->guiName_ + "\", " + str + ")");73 GUIManager::getInstance().executeCode("showGUI(\"" + this->guiName_ + "\", " + str + ")"); 71 74 } 72 75 else 73 76 { 74 GUIManager::getInstance Ptr()->executeCode("hideGUI(\"" + this->guiName_ + "\")");75 GUIManager::getInstance Ptr()->executeCode("hideCursor()");77 GUIManager::getInstance().executeCode("hideGUI(\"" + this->guiName_ + "\")"); 78 GUIManager::getInstance().executeCode("hideCursor()"); 76 79 InputManager::getInstance().requestLeaveState("guiMouseOnly"); 77 80 } -
code/branches/pch/src/orxonox/overlays/GUIOverlay.h
r3078 r3144 30 30 #define _GUIOverlay_H__ 31 31 32 33 #include "OrxonoxOverlay.h"34 32 #include "OrxonoxPrereqs.h" 35 33 36 #include <OgrePrerequisites.h> 37 38 #include "core/XMLPort.h" 34 #include <string> 35 #include "OrxonoxOverlay.h" 39 36 40 37 namespace orxonox -
code/branches/pch/src/orxonox/overlays/OrxonoxOverlay.h
r2993 r3144 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include <string> 39 40 #include <OgrePrerequisites.h> 40 #include "tools/WindowEventListener.h" 41 41 42 #include "util/Math.h" 42 43 #include "core/BaseObject.h" 44 #include "tools/WindowEventListener.h" 43 45 44 46 namespace orxonox … … 134 136 135 137 //! Gets the current size that was set (uncorrected) 136 const Vector2& getSize() const 138 const Vector2& getSize() const { return this->size_; } 137 139 138 140 //! Gets the actual size of the overlay on the screen (corrected) 139 Vector2 getActualSize() const { return this->size_ * this->sizeCorrection_; }141 Vector2 getActualSize() const { return this->size_ * this->sizeCorrection_; } 140 142 141 143 //! Gets the current size correction (default: 1.0, 1.0) … … 198 200 Vector2 pickPoint_; //!< Point on the overlay to pick when translating 199 201 Degree angle_; //!< Rotation angle of the overlay 200 RotationState rotState_; //!< horizontal, vertical or inbetween202 RotationState rotState_; //!< horizontal, vertical or inbetween 201 203 202 204 private: -
code/branches/pch/src/orxonox/overlays/OverlayGroup.h
r2911 r3144 39 39 #include <set> 40 40 #include <OgrePrerequisites.h> 41 #include "util/Math.h" 41 42 #include "core/BaseObject.h" 42 #include "util/Math.h"43 43 44 44 namespace orxonox -
code/branches/pch/src/orxonox/overlays/OverlayText.cc
r3110 r3144 31 31 #include <OgreOverlayManager.h> 32 32 #include <OgrePanelOverlayElement.h> 33 #include <OgreTextAreaOverlayElement.h> 34 #include <boost/static_assert.hpp> 33 35 34 36 #include "util/String.h" … … 36 38 #include "core/XMLPort.h" 37 39 40 38 41 namespace orxonox 39 42 { 40 43 CreateFactory(OverlayText); 44 45 BOOST_STATIC_ASSERT(Ogre::TextAreaOverlayElement::Left == OverlayText::Left); 46 BOOST_STATIC_ASSERT(Ogre::TextAreaOverlayElement::Center == OverlayText::Center); 47 BOOST_STATIC_ASSERT(Ogre::TextAreaOverlayElement::Right == OverlayText::Right); 41 48 42 49 OverlayText::OverlayText(BaseObject* creator) … … 76 83 } 77 84 78 void OverlayText::setFont(const std::string& font)79 {80 if (font != "")81 this->text_->setFontName(font);82 }83 84 85 void OverlayText::setAlignmentString(const std::string& alignment) 85 86 { 86 87 if (alignment == "right") 87 this->setAlignment(O gre::TextAreaOverlayElement::Right);88 this->setAlignment(OverlayText::Right); 88 89 else if (alignment == "center") 89 this->setAlignment(O gre::TextAreaOverlayElement::Center);90 this->setAlignment(OverlayText::Center); 90 91 else // "left" and default 91 this->setAlignment(O gre::TextAreaOverlayElement::Left);92 this->setAlignment(OverlayText::Left); 92 93 } 93 94 … … 120 121 positionChanged(); 121 122 } 123 124 void OverlayText::setCaption(const std::string& caption) 125 { 126 this->text_->setCaption(caption); 127 this->changedCaption(); 128 } 129 std::string OverlayText::getCaption() const 130 { 131 return this->text_->getCaption(); 132 } 133 134 void OverlayText::setFont(const std::string& font) 135 { 136 if (font != "") 137 this->text_->setFontName(font); 138 } 139 const std::string& OverlayText::getFont() const 140 { 141 return this->text_->getFontName(); 142 } 143 144 void OverlayText::setSpaceWidth(float width) 145 { 146 this->text_->setSpaceWidth(width); 147 } 148 float OverlayText::getSpaceWidth() const 149 { 150 return this->text_->getSpaceWidth(); 151 } 152 153 void OverlayText::setColour(const ColourValue& colour) 154 { 155 this->text_->setColour(colour); this->changedColour(); 156 } 157 const ColourValue& OverlayText::getColour() const 158 { 159 return this->text_->getColour(); 160 } 161 162 void OverlayText::setAlignment(OverlayText::Alignment alignment) 163 { 164 this->text_->setAlignment((Ogre::TextAreaOverlayElement::Alignment)alignment); 165 } 166 OverlayText::Alignment OverlayText::getAlignment() const 167 { 168 return (OverlayText::Alignment)this->text_->getAlignment(); 169 } 122 170 } -
code/branches/pch/src/orxonox/overlays/OverlayText.h
r3099 r3144 33 33 34 34 #include <string> 35 #include <OgrePrerequisites.h> 36 #include <OgreTextAreaOverlayElement.h> 35 #include "util/Math.h" 37 36 #include "OrxonoxOverlay.h" 38 37 … … 42 41 { 43 42 public: 43 enum Alignment 44 { 45 Left, 46 Right, 47 Center 48 }; 49 44 50 OverlayText(BaseObject* creator); 45 51 virtual ~OverlayText(); … … 47 53 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); 48 54 49 inline void setCaption(const std::string& caption) { this->text_->setCaption(caption); this->changedCaption(); }50 inline std::string getCaption() const { return this->text_->getCaption(); }55 void setCaption(const std::string& caption); 56 std::string getCaption() const; 51 57 52 58 void setFont(const std::string& font); 53 inline const std::string& getFont() const { return this->text_->getFontName(); }59 const std::string& getFont() const; 54 60 55 inline void setSpaceWidth(float width) { this->text_->setSpaceWidth(width); }56 inline float getSpaceWidth() const { return this->text_->getSpaceWidth(); }61 void setSpaceWidth(float width); 62 float getSpaceWidth() const; 57 63 58 inline void setColour(const ColourValue& colour) { this->text_->setColour(colour); this->changedColour(); }59 inline const ColourValue& getColour() const { return this->text_->getColour(); }64 void setColour(const ColourValue& colour); 65 const ColourValue& getColour() const; 60 66 61 inline void setAlignment(Ogre::TextAreaOverlayElement::Alignment alignment) { this->text_->setAlignment(alignment); }62 inline Ogre::TextAreaOverlayElement::Alignment getAlignment() const { return this->text_->getAlignment(); }67 void setAlignment(OverlayText::Alignment alignment); 68 OverlayText::Alignment getAlignment() const; 63 69 64 70 void setAlignmentString(const std::string& alignment); -
code/branches/pch/src/orxonox/overlays/console/InGameConsole.cc
r3142 r3144 35 35 #include <OgreOverlayManager.h> 36 36 #include <OgreOverlayContainer.h> 37 #include <OgreBorderPanelOverlayElement.h> 38 #include <OgreTextAreaOverlayElement.h> 37 39 #include <OgreFontManager.h> 38 40 #include <OgreFont.h> -
code/branches/pch/src/orxonox/overlays/console/InGameConsole.h
r3142 r3144 32 32 33 33 #include "OrxonoxPrereqs.h" 34 #include <OgrePrerequisites.h>35 #include <OgreBorderPanelOverlayElement.h>36 #include <OgreTextAreaOverlayElement.h>37 34 35 #include <string> 38 36 #include "core/Shell.h" 39 #include "core/OrxonoxClass.h"40 37 #include "tools/WindowEventListener.h" 41 42 38 43 39 namespace orxonox 44 40 { 45 class _OrxonoxExport InGameConsole : virtual public OrxonoxClass,public ShellListener, public WindowEventListener41 class _OrxonoxExport InGameConsole : public ShellListener, public WindowEventListener 46 42 { 47 43 public: // functions -
code/branches/pch/src/orxonox/overlays/debug/DebugFPSText.cc
r3110 r3144 28 28 29 29 #include "DebugFPSText.h" 30 #include <OgreTextAreaOverlayElement.h> 30 31 31 #include "util/Convert.h" 32 32 #include "core/CoreIncludes.h" … … 51 51 52 52 float fps = Game::getInstance().getAvgFPS(); 53 this->setCaption( convertToString(fps));53 this->setCaption(multi_cast<std::string>(fps)); 54 54 } 55 55 } -
code/branches/pch/src/orxonox/overlays/debug/DebugFPSText.h
r2087 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "objects/Tickable.h" 34 35 #include "overlays/OverlayText.h" 35 #include "objects/Tickable.h"36 36 37 37 namespace orxonox … … 41 41 public: 42 42 DebugFPSText(BaseObject* creator); 43 ~DebugFPSText();43 virtual ~DebugFPSText(); 44 44 45 45 virtual void tick(float dt); -
code/branches/pch/src/orxonox/overlays/debug/DebugRTRText.cc
r3110 r3144 28 28 29 29 #include "DebugRTRText.h" 30 #include <OgreTextAreaOverlayElement.h> 30 31 #include "util/Convert.h" 31 32 #include "core/CoreIncludes.h" 32 #include "util/Convert.h"33 33 #include "core/Game.h" 34 34 … … 51 51 52 52 float rtr = Game::getInstance().getAvgTickTime(); 53 this->setCaption( convertToString(rtr));53 this->setCaption(multi_cast<std::string>(rtr)); 54 54 } 55 55 } -
code/branches/pch/src/orxonox/overlays/debug/DebugRTRText.h
r2087 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "objects/Tickable.h" 34 35 #include "overlays/OverlayText.h" 35 #include "objects/Tickable.h"36 36 37 37 namespace orxonox … … 41 41 public: 42 42 DebugRTRText(BaseObject* creator); 43 ~DebugRTRText();43 virtual ~DebugRTRText(); 44 44 45 45 virtual void tick(float dt); -
code/branches/pch/src/orxonox/overlays/hud/AnnounceMessage.h
r3099 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <string> 35 #include "objects/GametypeMessageListener.h" 34 36 #include "overlays/FadeoutText.h" 35 #include "objects/GametypeMessageListener.h"36 37 37 38 namespace orxonox -
code/branches/pch/src/orxonox/overlays/hud/ChatOverlay.cc
r3142 r3144 31 31 #include <OgreTextAreaOverlayElement.h> 32 32 33 #include "util/Convert.h" 33 34 #include "util/UTFStringConversions.h" 34 35 #include "core/CoreIncludes.h" … … 36 37 #include "core/Executor.h" 37 38 38 #include " network/ClientInformation.h"39 39 #include "tools/Timer.h" 40 #include "objects/infos/PlayerInfo.h" 40 41 #include "PlayerManager.h" 41 #include "objects/infos/PlayerInfo.h"42 #include "tools/Timer.h"43 44 #include "util/Convert.h"45 42 46 43 namespace orxonox -
code/branches/pch/src/orxonox/overlays/hud/ChatOverlay.h
r2171 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <OgreTextAreaOverlayElement.h> 34 #include <string> 35 #include <list> 36 #include <OgreUTFString.h> 35 37 36 38 #include "network/ChatListener.h" … … 43 45 public: 44 46 ChatOverlay(BaseObject* creator); 45 ~ChatOverlay();47 virtual ~ChatOverlay(); 46 48 47 49 void setConfigValues(); -
code/branches/pch/src/orxonox/overlays/hud/DeathMessage.h
r3099 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <string> 35 #include "objects/GametypeMessageListener.h" 34 36 #include "overlays/FadeoutText.h" 35 #include "objects/GametypeMessageListener.h"36 37 37 38 namespace orxonox -
code/branches/pch/src/orxonox/overlays/hud/GametypeStatus.cc
r3110 r3144 29 29 #include "GametypeStatus.h" 30 30 31 #include <OgreTextAreaOverlayElement.h> 32 31 #include "util/Convert.h" 33 32 #include "core/CoreIncludes.h" 34 #include "util/Convert.h"35 33 #include "objects/infos/GametypeInfo.h" 36 34 #include "objects/infos/PlayerInfo.h" -
code/branches/pch/src/orxonox/overlays/hud/GametypeStatus.h
r2973 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "objects/Tickable.h" 34 35 #include "overlays/OverlayText.h" 35 #include "objects/Tickable.h"36 36 37 37 namespace orxonox … … 41 41 public: 42 42 GametypeStatus(BaseObject* creator); 43 ~GametypeStatus();43 virtual ~GametypeStatus(); 44 44 45 45 virtual void tick(float dt); -
code/branches/pch/src/orxonox/overlays/hud/HUDBar.cc
r3110 r3144 34 34 #include <OgreMaterialManager.h> 35 35 #include <OgreTechnique.h> 36 #include <OgrePass.h> 36 37 #include <OgrePanelOverlayElement.h> 37 38 -
code/branches/pch/src/orxonox/overlays/hud/HUDBar.h
r2662 r3144 35 35 36 36 #include <map> 37 #include <vector> 37 38 #include <OgrePrerequisites.h> 39 38 40 #include "util/Math.h" 41 #include "core/BaseObject.h" 39 42 #include "overlays/OrxonoxOverlay.h" 40 43 … … 45 48 public: 46 49 BarColour(BaseObject* creator); 47 ~BarColour() { }50 virtual ~BarColour() { } 48 51 49 52 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); -
code/branches/pch/src/orxonox/overlays/hud/HUDHealthBar.cc
r3110 r3144 29 29 #include "HUDHealthBar.h" 30 30 31 #include <OgreOverlayManager.h> 32 #include <OgrePanelOverlayElement.h> 33 31 #include "util/Convert.h" 34 32 #include "core/CoreIncludes.h" 35 33 #include "core/XMLPort.h" 36 34 #include "objects/worldentities/pawns/Pawn.h" 37 #include "objects/items/Engine.h"38 35 #include "overlays/OverlayGroup.h" 39 #include "util/Convert.h"40 36 41 37 namespace orxonox -
code/branches/pch/src/orxonox/overlays/hud/HUDHealthBar.h
r2662 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include " HUDBar.h"34 #include "util/Math.h" 35 35 #include "objects/Tickable.h" 36 36 #include "overlays/OverlayText.h" 37 #include "HUDBar.h" 37 38 38 39 namespace orxonox … … 42 43 public: 43 44 HUDHealthBar(BaseObject* creator); 44 ~HUDHealthBar();45 virtual ~HUDHealthBar(); 45 46 46 47 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); … … 64 65 { return this->bUseBarColour_; } 65 66 66 inline void setTextAlignment(O gre::TextAreaOverlayElement::Alignment alignment)67 inline void setTextAlignment(OverlayText::Alignment alignment) 67 68 { this->textoverlay_->setAlignment(alignment); } 68 inline O gre::TextAreaOverlayElement::Alignment getTextAlignment() const69 inline OverlayText::Alignment getTextAlignment() const 69 70 { return this->textoverlay_->getAlignment(); } 70 71 -
code/branches/pch/src/orxonox/overlays/hud/HUDNavigation.cc
r3110 r3144 36 36 #include "util/String.h" 37 37 #include "util/Convert.h" 38 #include "core/ConsoleCommand.h"39 38 #include "core/CoreIncludes.h" 40 39 #include "core/XMLPort.h" -
code/branches/pch/src/orxonox/overlays/hud/HUDNavigation.h
r2087 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <string> 34 35 #include <OgrePrerequisites.h> 36 #include "objects/Tickable.h" 35 37 #include "overlays/OrxonoxOverlay.h" 36 #include "objects/Tickable.h"37 38 38 39 namespace orxonox … … 42 43 public: 43 44 HUDNavigation(BaseObject* creator); 44 ~HUDNavigation();45 virtual ~HUDNavigation(); 45 46 46 47 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); -
code/branches/pch/src/orxonox/overlays/hud/HUDRadar.cc
r3110 r3144 35 35 #include "util/Math.h" 36 36 #include "util/String.h" 37 #include "core/ConsoleCommand.h"38 37 #include "core/CoreIncludes.h" 39 38 #include "core/XMLPort.h" 40 #include " objects/Radar.h"39 #include "tools/TextureGenerator.h" 41 40 #include "objects/worldentities/WorldEntity.h" 42 41 #include "objects/worldentities/pawns/Pawn.h" 43 #include "tools/TextureGenerator.h"44 42 45 43 namespace orxonox -
code/branches/pch/src/orxonox/overlays/hud/HUDRadar.h
r2662 r3144 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #include <map> 35 36 #include <vector> 36 #include <map>37 37 #include <OgrePrerequisites.h> 38 38 39 #include "overlays/OrxonoxOverlay.h" 39 40 #include "objects/RadarListener.h" … … 46 47 public: 47 48 HUDRadar(BaseObject* creator); 48 ~HUDRadar();49 virtual ~HUDRadar(); 49 50 50 51 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); -
code/branches/pch/src/orxonox/overlays/hud/HUDSpeedBar.cc
r3110 r3144 29 29 30 30 #include "HUDSpeedBar.h" 31 31 32 #include "core/CoreIncludes.h" 32 33 #include "objects/worldentities/pawns/SpaceShip.h" -
code/branches/pch/src/orxonox/overlays/hud/HUDSpeedBar.h
r2662 r3144 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #include "objects/Tickable.h" 35 36 #include "HUDBar.h" 36 #include "objects/Tickable.h"37 37 38 38 namespace orxonox … … 42 42 public: 43 43 HUDSpeedBar(BaseObject* creator); 44 ~HUDSpeedBar();44 virtual ~HUDSpeedBar(); 45 45 46 46 virtual void tick(float dt); -
code/branches/pch/src/orxonox/overlays/hud/HUDTimer.cc
r3110 r3144 29 29 #include "HUDTimer.h" 30 30 31 #include "util/Convert.h" 31 32 #include "core/CoreIncludes.h" 32 #include "util/Convert.h"33 33 #include "objects/worldentities/ControllableEntity.h" 34 34 #include "objects/gametypes/Gametype.h" … … 36 36 namespace orxonox 37 37 { 38 CreateFactory(HUDTimer);38 CreateFactory(HUDTimer); 39 39 40 HUDTimer::HUDTimer(BaseObject* creator) : OverlayText(creator)41 {42 RegisterObject(HUDTimer);40 HUDTimer::HUDTimer(BaseObject* creator) : OverlayText(creator) 41 { 42 RegisterObject(HUDTimer); 43 43 44 this->owner_ = 0;45 }44 this->owner_ = 0; 45 } 46 46 47 HUDTimer::~HUDTimer()48 {49 }47 HUDTimer::~HUDTimer() 48 { 49 } 50 50 51 void HUDTimer::tick(float dt)52 {53 SUPER(HUDTimer, tick, dt);51 void HUDTimer::tick(float dt) 52 { 53 SUPER(HUDTimer, tick, dt); 54 54 55 Gametype* gametype = this->getGametype(); 56 57 if(gametype) 55 Gametype* gametype = this->getGametype(); 56 57 if (gametype) 58 { 59 if (gametype->getTimerIsActive()) 60 { 61 this->setCaption(convertToString((int)gametype->getTime() + 1)); 62 } 63 } 64 } 65 66 void HUDTimer::changedOwner() 58 67 { 59 if (gametype->getTimerIsActive()) 60 { 61 this->setCaption(convertToString((int)gametype->getTime() + 1)); 62 } 68 SUPER(HUDTimer, changedOwner); 69 70 this->owner_ = dynamic_cast<ControllableEntity*>(this->getOwner()); 63 71 } 64 }65 66 void HUDTimer::changedOwner()67 {68 SUPER(HUDTimer, changedOwner);69 70 this->owner_ = dynamic_cast<ControllableEntity*>(this->getOwner());71 }72 72 } -
code/branches/pch/src/orxonox/overlays/hud/HUDTimer.h
r3033 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "objects/Tickable.h" 34 35 #include "overlays/OverlayText.h" 35 #include "objects/Tickable.h"36 36 37 37 namespace orxonox 38 38 { 39 class _OrxonoxExport HUDTimer : public OverlayText, public Tickable40 {39 class _OrxonoxExport HUDTimer : public OverlayText, public Tickable 40 { 41 41 public: 42 HUDTimer(BaseObject* creator);43 ~HUDTimer();42 HUDTimer(BaseObject* creator); 43 virtual ~HUDTimer(); 44 44 45 virtual void tick(float dt);45 virtual void tick(float dt); 46 46 47 virtual void changedOwner();47 virtual void changedOwner(); 48 48 49 49 private: 50 50 ControllableEntity* owner_; 51 };51 }; 52 52 } 53 53 #endif /* _HUDTimer_H__ */ -
code/branches/pch/src/orxonox/overlays/hud/KillMessage.h
r3099 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <string> 35 #include "objects/GametypeMessageListener.h" 34 36 #include "overlays/FadeoutText.h" 35 #include "objects/GametypeMessageListener.h"36 37 37 38 namespace orxonox -
code/branches/pch/src/orxonox/overlays/hud/PongScore.cc
r3110 r3144 29 29 #include "PongScore.h" 30 30 31 #include <OgreTextAreaOverlayElement.h> 32 31 #include "util/Convert.h" 33 32 #include "core/CoreIncludes.h" 34 33 #include "core/XMLPort.h" 35 #include "util/Convert.h"36 34 #include "objects/gametypes/Pong.h" 37 35 #include "objects/infos/PlayerInfo.h" -
code/branches/pch/src/orxonox/overlays/hud/PongScore.h
r3078 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "objects/Tickable.h" 34 35 #include "overlays/OverlayText.h" 35 #include "objects/Tickable.h"36 36 37 37 namespace orxonox … … 41 41 public: 42 42 PongScore(BaseObject* creator); 43 ~PongScore();43 virtual ~PongScore(); 44 44 45 45 virtual void tick(float dt); -
code/branches/pch/src/orxonox/overlays/hud/TeamBaseMatchScore.cc
r3110 r3144 28 28 29 29 #include "TeamBaseMatchScore.h" 30 31 #include <OgreTextAreaOverlayElement.h>32 30 33 31 #include "core/CoreIncludes.h" -
code/branches/pch/src/orxonox/overlays/hud/TeamBaseMatchScore.h
r3104 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "objects/Tickable.h" 34 35 #include "overlays/OverlayText.h" 35 #include "objects/Tickable.h"36 36 37 37 namespace orxonox … … 41 41 public: 42 42 TeamBaseMatchScore(BaseObject* creator); 43 ~TeamBaseMatchScore();43 virtual ~TeamBaseMatchScore(); 44 44 45 45 virtual void tick(float dt); -
code/branches/pch/src/orxonox/overlays/hud/UnderAttackHealthBar.h
r3104 r3144 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "util/Math.h" 35 #include "tools/Timer.h" 34 36 #include "HUDHealthBar.h" 35 #include "tools/Timer.h"36 37 37 38 namespace orxonox -
code/branches/pch/src/orxonox/overlays/map/Map.cc
r3110 r3144 24 24 * 25 25 */ 26 26 27 #include "Map.h" 27 28 28 29 #include <string> 29 #include "util/String.h" 30 31 #include <OgreBorderPanelOverlayElement.h> 32 #include <OgreCamera.h> 33 #include <OgreHardwarePixelBuffer.h> 34 #include <OgreMaterialManager.h> 35 #include <OgreMovablePlane.h> 36 #include <OgreOverlay.h> 37 #include <OgreOverlayContainer.h> 38 #include <OgreOverlayManager.h> 39 #include <OgrePass.h> 40 #include <OgreRenderTexture.h> 41 #include <OgreResourceGroupManager.h> 42 #include <OgreRoot.h> 30 43 #include <OgreSceneManager.h> 31 44 #include <OgreSceneNode.h> 32 #include <OgreEntity.h> 33 #include <OgreNode.h> 34 35 36 #include <OgreRenderWindow.h> 37 #include <OgreRenderTexture.h> 45 #include <OgreTechnique.h> 38 46 #include <OgreTexture.h> 47 #include <OgreTextureManager.h> 39 48 #include <OgreViewport.h> 40 49 41 #include <OgreMaterialManager.h> 42 #include <OgreRoot.h> 43 #include <OgreHardwarePixelBuffer.h> 44 #include "objects/worldentities/ControllableEntity.h" 45 #include "objects/worldentities/CameraPosition.h" 46 47 #include <OgreOverlay.h> 48 #include <OgreMovablePlane.h> 49 #include <OgreOverlayElement.h> 50 #include <OgreOverlayManager.h> 51 #include <OgreOverlayContainer.h> 50 #include "core/ConsoleCommand.h" 52 51 #include "core/CoreIncludes.h" 53 #include "core/ ConfigValueIncludes.h"54 #include "core/ ConsoleCommand.h"52 #include "core/Iterator.h" 53 #include "core/XMLPort.h" 55 54 #include "objects/Scene.h" 56 55 #include "objects/RadarViewable.h" 57 56 #include "objects/controllers/HumanController.h" 57 #include "objects/worldentities/CameraPosition.h" 58 #include "objects/worldentities/ControllableEntity.h" 58 59 59 60 namespace orxonox -
code/branches/pch/src/orxonox/overlays/map/Map.h
r3101 r3144 25 25 */ 26 26 27 #ifndef _MAP_H__ 28 #define _MAP_H__ 27 #ifndef _Map_H__ 28 #define _Map_H__ 29 30 #include "OrxonoxPrereqs.h" 29 31 30 32 #include <string> 31 #include "OrxonoxPrereqs.h" 32 #include <OgrePrerequisites.h> 33 #include <OgreSceneManager.h> 34 #include <OgreSceneNode.h> 35 #include <OgreEntity.h> 36 #include <OgreOverlay.h> 37 #include <OgreOverlayElement.h> 38 #include <OgreOverlayManager.h> 39 #include <OgreOverlayContainer.h> 40 #include <OgreMovablePlane.h> 33 #include <OgreMaterial.h> 41 34 42 #include <OgreBorderPanelOverlayElement.h> 43 #include <OgreTextAreaOverlayElement.h> 44 35 #include "util/UtilPrereqs.h" 36 #include "objects/Tickable.h" 45 37 #include "overlays/OrxonoxOverlay.h" 46 #include "objects/Tickable.h"47 48 49 38 50 39 namespace orxonox … … 55 44 public: // functions 56 45 Map(BaseObject* creator); 57 ~Map();46 virtual ~Map(); 58 47 59 48 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); … … 126 115 } 127 116 128 #endif /* _M AP_H__ */117 #endif /* _Map_H__ */ -
code/branches/pch/src/orxonox/overlays/notifications/Notification.cc
r3110 r3144 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "util/Exception.h"38 39 37 #include "NotificationManager.h" 40 38 … … 48 46 Notification::Notification(BaseObject* creator) : BaseObject(creator) 49 47 { 48 RegisterObject(Notification); 50 49 this->initialize(); 51 50 } … … 76 75 void Notification::initialize(void) 77 76 { 78 RegisterObject(Notification);79 80 77 this->message_ = ""; 81 78 this->sender_ = NotificationManager::NONE; -
code/branches/pch/src/orxonox/overlays/notifications/Notification.h
r3034 r3144 38 38 39 39 #include <string> 40 41 40 #include "core/BaseObject.h" 42 41 -
code/branches/pch/src/orxonox/overlays/notifications/NotificationManager.cc
r3110 r3144 34 34 #include "NotificationManager.h" 35 35 36 #include <set> 37 36 38 #include "core/CoreIncludes.h" 37 38 #include <set>39 40 39 #include "Notification.h" 41 40 #include "NotificationQueue.h" -
code/branches/pch/src/orxonox/overlays/notifications/NotificationManager.h
r3034 r3144 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include "core/OrxonoxClass.h" 40 39 #include <ctime> 41 40 #include <map> 42 41 #include <string> 43 #include <ctime> 44 45 #include "NotificationOverlay.h" 42 #include "core/OrxonoxClass.h" 46 43 47 44 namespace orxonox -
code/branches/pch/src/orxonox/overlays/notifications/NotificationOverlay.cc
r3110 r3144 34 34 #include "NotificationOverlay.h" 35 35 36 #include <OgreOverlayManager.h> 37 #include <OgreTextAreaOverlayElement.h> 38 #include <OgrePanelOverlayElement.h> 39 36 #include "util/Exception.h" 40 37 #include "core/CoreIncludes.h" 41 #include "util/Exception.h"42 43 38 #include "Notification.h" 44 39 #include "NotificationQueue.h" … … 53 48 NotificationOverlay::NotificationOverlay(BaseObject* creator) : OverlayText(creator) 54 49 { 50 RegisterObject(NotificationOverlay); 55 51 this->initialize(); 56 52 } … … 87 83 void NotificationOverlay::initialize(void) 88 84 { 89 RegisterObject(NotificationOverlay);90 91 85 this->queue_ = NULL; 92 86 } -
code/branches/pch/src/orxonox/overlays/notifications/NotificationOverlay.h
r3078 r3144 38 38 #include "OrxonoxPrereqs.h" 39 39 40 #include <string> 40 41 #include "orxonox/overlays/OverlayText.h" 41 42 #include <string>43 #include <set>44 #include <OgrePrerequisites.h>45 #include <OgreTextAreaOverlayElement.h>46 42 47 43 namespace orxonox -
code/branches/pch/src/orxonox/overlays/notifications/NotificationQueue.cc
r3110 r3144 34 34 #include "NotificationQueue.h" 35 35 36 #include <OgreOverlayManager.h>37 #include <OgreTextAreaOverlayElement.h>38 #include <list>39 #include <iostream>40 36 #include <sstream> 41 37 42 38 #include "core/CoreIncludes.h" 43 39 #include "core/XMLPort.h" 44 45 #include "Notification.h"46 40 #include "NotificationOverlay.h" 41 #include "NotificationManager.h" 47 42 48 43 namespace orxonox … … 61 56 NotificationQueue::NotificationQueue(BaseObject* creator) : OverlayGroup(creator) 62 57 { 58 RegisterObject(NotificationQueue); 63 59 this->initialize(); 64 60 } … … 81 77 void NotificationQueue::initialize(void) 82 78 { 83 RegisterObject(NotificationQueue);84 85 79 this->size_ = 0; 86 80 this->tickTime_ = 0.0; -
code/branches/pch/src/orxonox/overlays/notifications/NotificationQueue.h
r2926 r3144 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include <ctime> 40 #include <map> 41 #include <set> 39 42 #include <string> 40 #include <set> 41 #include <OgreOverlayManager.h> 42 #include <OgreTextAreaOverlayElement.h> 43 #include <OgrePanelOverlayElement.h> 44 #include <map> 45 #include <ctime> 46 43 44 #include "util/Math.h" 45 #include "orxonox/objects/Tickable.h" 47 46 #include "orxonox/overlays/OverlayGroup.h" 48 #include "orxonox/objects/Tickable.h"49 50 #include "NotificationManager.h"51 47 52 48 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.