Changeset 3196 for code/trunk/src/orxonox/overlays/hud
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/hud/AnnounceMessage.h
r3099 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "interfaces/GametypeMessageListener.h" 34 35 #include "overlays/FadeoutText.h" 35 #include "objects/GametypeMessageListener.h"36 36 37 37 namespace orxonox -
code/trunk/src/orxonox/overlays/hud/ChatOverlay.cc
r3110 r3196 29 29 #include "ChatOverlay.h" 30 30 31 #include <string> 31 32 #include <OgreTextAreaOverlayElement.h> 32 33 34 #include "util/Convert.h" 35 #include "util/UTFStringConversions.h" 33 36 #include "core/CoreIncludes.h" 34 37 #include "core/ConfigValueIncludes.h" 35 38 #include "core/Executor.h" 36 39 37 #include " network/ClientInformation.h"38 40 #include "tools/Timer.h" 41 #include "objects/infos/PlayerInfo.h" 39 42 #include "PlayerManager.h" 40 #include "objects/infos/PlayerInfo.h"41 #include "overlays/console/InGameConsole.h"42 #include "tools/Timer.h"43 44 #include "util/Convert.h"45 43 46 44 namespace orxonox … … 86 84 } 87 85 88 this->messages_.push_back( InGameConsole::convert2UTF(text));86 this->messages_.push_back(multi_cast<Ogre::UTFString>(text)); 89 87 COUT(0) << "Chat: " << text << std::endl; 90 88 -
code/trunk/src/orxonox/overlays/hud/ChatOverlay.h
r2171 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <OgreTextAreaOverlayElement.h> 34 #include <list> 35 #include <OgreUTFString.h> 35 36 36 37 #include "network/ChatListener.h" … … 43 44 public: 44 45 ChatOverlay(BaseObject* creator); 45 ~ChatOverlay();46 virtual ~ChatOverlay(); 46 47 47 48 void setConfigValues(); -
code/trunk/src/orxonox/overlays/hud/DeathMessage.h
r3099 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "interfaces/GametypeMessageListener.h" 34 35 #include "overlays/FadeoutText.h" 35 #include "objects/GametypeMessageListener.h"36 36 37 37 namespace orxonox -
code/trunk/src/orxonox/overlays/hud/GametypeStatus.cc
r3110 r3196 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/trunk/src/orxonox/overlays/hud/GametypeStatus.h
r2973 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "interfaces/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/trunk/src/orxonox/overlays/hud/HUDBar.cc
r3110 r3196 34 34 #include <OgreMaterialManager.h> 35 35 #include <OgreTechnique.h> 36 #include <OgrePass.h> 36 37 #include <OgrePanelOverlayElement.h> 37 38 … … 77 78 this->textureUnitState_->setTextureName("bar2.tga"); 78 79 // use the default colour 79 this->textureUnitState_->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, ColourValue(0.2 , 0.7, 0.2));80 this->textureUnitState_->setColourOperationEx(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, ColourValue(0.2f, 0.7f, 0.2f)); 80 81 81 82 this->bar_ = static_cast<Ogre::PanelOverlayElement*>(Ogre::OverlayManager::getSingleton() -
code/trunk/src/orxonox/overlays/hud/HUDBar.h
r2662 r3196 35 35 36 36 #include <map> 37 #include <OgrePrerequisites.h> 37 #include <vector> 38 38 39 #include "util/Math.h" 40 #include "util/OgreForwardRefs.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/trunk/src/orxonox/overlays/hud/HUDHealthBar.cc
r3110 r3196 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/trunk/src/orxonox/overlays/hud/HUDHealthBar.h
r2662 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "util/Math.h" 35 #include "interfaces/Tickable.h" 36 #include "overlays/OverlayText.h" 34 37 #include "HUDBar.h" 35 #include "objects/Tickable.h"36 #include "overlays/OverlayText.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/trunk/src/orxonox/overlays/hud/HUDNavigation.cc
r3110 r3196 29 29 #include "HUDNavigation.h" 30 30 31 #include <string> 31 32 #include <OgreOverlayManager.h> 32 33 #include <OgreTextAreaOverlayElement.h> … … 36 37 #include "util/String.h" 37 38 #include "util/Convert.h" 38 #include "core/ConsoleCommand.h"39 39 #include "core/CoreIncludes.h" 40 40 #include "core/XMLPort.h" -
code/trunk/src/orxonox/overlays/hud/HUDNavigation.h
r2087 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <OgrePrerequisites.h> 34 #include "util/OgreForwardRefs.h" 35 #include "interfaces/Tickable.h" 35 36 #include "overlays/OrxonoxOverlay.h" 36 #include "objects/Tickable.h"37 37 38 38 namespace orxonox … … 42 42 public: 43 43 HUDNavigation(BaseObject* creator); 44 ~HUDNavigation();44 virtual ~HUDNavigation(); 45 45 46 46 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); -
code/trunk/src/orxonox/overlays/hud/HUDRadar.cc
r3110 r3196 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/trunk/src/orxonox/overlays/hud/HUDRadar.h
r2662 r3196 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #include <map> 35 36 #include <vector> 36 #include <map> 37 #include <OgrePrerequisites.h> 37 38 #include "util/OgreForwardRefs.h" 39 #include "interfaces/RadarListener.h" 40 #include "interfaces/RadarViewable.h" 38 41 #include "overlays/OrxonoxOverlay.h" 39 #include "objects/RadarListener.h"40 #include "objects/RadarViewable.h"41 42 42 43 namespace orxonox … … 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/trunk/src/orxonox/overlays/hud/HUDSpeedBar.cc
r3110 r3196 29 29 30 30 #include "HUDSpeedBar.h" 31 31 32 #include "core/CoreIncludes.h" 32 33 #include "objects/worldentities/pawns/SpaceShip.h" -
code/trunk/src/orxonox/overlays/hud/HUDSpeedBar.h
r2662 r3196 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #include "interfaces/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/trunk/src/orxonox/overlays/hud/HUDTimer.cc
r3110 r3196 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/trunk/src/orxonox/overlays/hud/HUDTimer.h
r3033 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "interfaces/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/trunk/src/orxonox/overlays/hud/KillMessage.h
r3099 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "interfaces/GametypeMessageListener.h" 34 35 #include "overlays/FadeoutText.h" 35 #include "objects/GametypeMessageListener.h"36 36 37 37 namespace orxonox -
code/trunk/src/orxonox/overlays/hud/PongScore.cc
r3110 r3196 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/trunk/src/orxonox/overlays/hud/PongScore.h
r3078 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "interfaces/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/trunk/src/orxonox/overlays/hud/TeamBaseMatchScore.cc
r3110 r3196 28 28 29 29 #include "TeamBaseMatchScore.h" 30 31 #include <OgreTextAreaOverlayElement.h>32 30 33 31 #include "core/CoreIncludes.h" -
code/trunk/src/orxonox/overlays/hud/TeamBaseMatchScore.h
r3104 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "interfaces/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/trunk/src/orxonox/overlays/hud/UnderAttackHealthBar.cc
r3110 r3196 47 47 this->text_ = new OverlayText(this); 48 48 this->text_->setFont("Monofur"); 49 this->text_->setTextSize(0.04 );49 this->text_->setTextSize(0.04f); 50 50 this->text_->setAlignmentString("center"); 51 51 this->text_->setColour(ColourValue::White); -
code/trunk/src/orxonox/overlays/hud/UnderAttackHealthBar.h
r3104 r3196 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
Note: See TracChangeset
for help on using the changeset viewer.