Changeset 8107 for code/branches/tetris/src/modules/pong/PongScore.h
- Timestamp:
- Mar 23, 2011, 9:41:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tetris/src/modules/pong/PongScore.h
r8106 r8107 39 39 40 40 #include "tools/interfaces/Tickable.h" 41 41 42 #include "overlays/OverlayText.h" 42 43 … … 45 46 46 47 /** 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 48 55 */ 49 56 class _PongExport PongScore : public OverlayText, public Tickable … … 53 60 virtual ~PongScore(); 54 61 55 virtual void tick(float dt); 62 virtual void tick(float dt); //!< Creates and sets the caption to be displayed by the PongScore. 56 63 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 57 virtual void changedOwner(); 64 virtual void changedOwner(); //!< Is called when the owner changes. 58 65 66 /** 67 @brief Set whether the PongScore displays the players' names. 68 @param value If true the players' names are displayed. 69 */ 59 70 inline void setShowName(bool value) 60 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 */ 61 76 inline bool getShowName() const 62 77 { return this->bShowName_; } 63 78 79 /** 80 @brief Set whether the PongScore displays the players' scores. 81 @param value If true the players' scores are displayed. 82 */ 64 83 inline void setShowScore(bool value) 65 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 */ 66 89 inline bool getShowScore() const 67 90 { return this->bShowScore_; } 68 91 92 /** 93 @brief Set whether the PongScore displays the left player. 94 @param value If true the left player is displayed. 95 */ 69 96 inline void setShowLeftPlayer(bool value) 70 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 */ 71 102 inline bool getShowLeftPlayer() const 72 103 { return this->bShowLeftPlayer_; } 73 104 105 /** 106 @brief Set whether the PongScore displays the right player. 107 @param value If true the right player is displayed. 108 */ 74 109 inline void setShowRightPlayer(bool value) 75 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 */ 76 115 inline bool getShowRightPlayer() const 77 116 { return this->bShowRightPlayer_; } 78 117 79 118 private: 80 Pong* owner_; 81 bool bShowName_; 82 bool bShowScore_; 83 bool bShowLeftPlayer_; 84 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. 85 124 }; 86 125 }
Note: See TracChangeset
for help on using the changeset viewer.