Changeset 8108 for code/trunk/src/modules/pong/PongScore.h
- Timestamp:
- Mar 23, 2011, 9:57:54 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/tetris (added) merged: 8104-8107
- Property svn:mergeinfo changed
-
code/trunk/src/modules/pong/PongScore.h
r5781 r8108 27 27 */ 28 28 29 /** 30 @file PongScore.h 31 @brief Declaration of the PongScore class. 32 @ingroup Pong 33 */ 34 29 35 #ifndef _PongScore_H__ 30 36 #define _PongScore_H__ … … 33 39 34 40 #include "tools/interfaces/Tickable.h" 41 35 42 #include "overlays/OverlayText.h" 36 43 37 44 namespace orxonox 38 45 { 46 47 /** 48 @brief 49 The PongScore class displays the score for a game of @ref orxonox::Pong "Pong". 50 51 @author 52 Fabian 'x3n' Landau 53 54 @ingroup Pong 55 */ 39 56 class _PongExport PongScore : public OverlayText, public Tickable 40 57 { … … 43 60 virtual ~PongScore(); 44 61 45 virtual void tick(float dt); 62 virtual void tick(float dt); //!< Creates and sets the caption to be displayed by the PongScore. 46 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 47 virtual void changedOwner(); 64 virtual void changedOwner(); //!< Is called when the owner changes. 48 65 66 /** 67 @brief Set whether the PongScore displays the players' names. 68 @param value If true the players' names are displayed. 69 */ 49 70 inline void setShowName(bool value) 50 71 { this->bShowName_ = value; } 72 /** 73 @brief Get whether the PongScore displays the players' names. 74 @return Returns true if the players' names are displayed, false otherwise. 75 */ 51 76 inline bool getShowName() const 52 77 { return this->bShowName_; } 53 78 79 /** 80 @brief Set whether the PongScore displays the players' scores. 81 @param value If true the players' scores are displayed. 82 */ 54 83 inline void setShowScore(bool value) 55 84 { this->bShowScore_ = value; } 85 /** 86 @brief Get whether the PongScore displays the players' scores. 87 @return Returns true if the players' scores are displayed, false otherwise. 88 */ 56 89 inline bool getShowScore() const 57 90 { return this->bShowScore_; } 58 91 92 /** 93 @brief Set whether the PongScore displays the left player. 94 @param value If true the left player is displayed. 95 */ 59 96 inline void setShowLeftPlayer(bool value) 60 97 { this->bShowLeftPlayer_ = value; } 98 /** 99 @brief Get whether the PongScore displays the left player. 100 @return Returns true if the left player is displayed, false otherwise. 101 */ 61 102 inline bool getShowLeftPlayer() const 62 103 { return this->bShowLeftPlayer_; } 63 104 105 /** 106 @brief Set whether the PongScore displays the right player. 107 @param value If true the right player is displayed. 108 */ 64 109 inline void setShowRightPlayer(bool value) 65 110 { this->bShowRightPlayer_ = value; } 111 /** 112 @brief Get whether the PongScore displays the right player. 113 @return Returns true if the right player is displayed, false otherwise. 114 */ 66 115 inline bool getShowRightPlayer() const 67 116 { return this->bShowRightPlayer_; } 68 117 69 118 private: 70 Pong* owner_; 71 bool bShowName_; 72 bool bShowScore_; 73 bool bShowLeftPlayer_; 74 bool bShowRightPlayer_; 119 Pong* owner_; //!< The Pong game that owns this PongScore. 120 bool bShowName_; //!< Whether the names of the players are shown. 121 bool bShowScore_; //!< Whether the score of the players is shown. 122 bool bShowLeftPlayer_; //!< Whether the left player is shown. 123 bool bShowRightPlayer_; //!< Whether the right player is shown. 75 124 }; 76 125 }
Note: See TracChangeset
for help on using the changeset viewer.