- Timestamp:
- May 9, 2019, 5:15:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.h
r12360 r12366 109 109 { return this->accelerationFactor_; } 110 110 111 /** 112 @brief Set the length of the bats. 113 @param batlength The length of the bats (in z-direction) as percentage of the height of the playing field. 114 */ 115 void setBatLength(float batlength) 116 { this->batlength_ = batlength; } 117 /** 118 @brief Get the length of the bats. 119 @return Returns the length of the bats (in z-direction) as percentage of the height of the playing field. 120 */ 121 float getBatLength() const 122 { return this->batlength_; } 123 111 124 112 125 113 void Bounce(OrxoBloxStones* otherObject); … … 130 118 void setDefScoreSound(const std::string& engineSound); 131 119 const std::string& getDefScoreSound(); 132 void setDefBatSound(const std::string& engineSound); 133 const std::string& getDefBatSound(); 120 134 121 void setDefBoundarySound(const std::string& engineSound); 135 122 const std::string& getDefBoundarySound(); … … 146 133 float speed_; //!< The speed (in x-direction) of the ball. 147 134 float accelerationFactor_; //!< The acceleration factor of the ball. 148 float batlength_; //!< The length of the bats (in z-direction) as percentage of the height of the playing field. 149 bool bDeleteBats_; //!< Bool, to keep track, of whether this->bat_ exists or not. 135 150 136 unsigned int* batID_; //!< The object IDs of the bats, to be able to synchronize them over the network. 151 137 float relMercyOffset_; //!< Offset, that makes the player not loose, when, in all fairness, he would have. 152 138 WorldSound* defScoreSound_; 153 WorldSound* defBatSound_;154 139 WorldSound* defBoundarySound_; 155 140 OrxoBlox* orxoblox_;
Note: See TracChangeset
for help on using the changeset viewer.