Changeset 3144 for code/branches/pch/src/orxonox/overlays/hud
- Timestamp:
- Jun 10, 2009, 10:58:53 PM (16 years ago)
- Location:
- code/branches/pch/src/orxonox/overlays/hud
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.