- 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/OrxoBloxCenterpoint.h
r12307 r12366 139 139 { return this->balltemplate_; } 140 140 141 /** 142 @brief Set the template for the bats. (e.g. to attach the model of the bat, but also to attach CameraPositions to it, to be able to view the game from the bats perspective) 143 @param battemplate The name of the template to be set. 144 */ 145 void setBattemplate(const std::string& battemplate) 146 { this->battemplate_ = battemplate; } 147 /** 148 @brief Get the template of the bats. 149 @return Returns the name of the template of the bats. 150 */ 151 const std::string& getBattemplate() const 152 { return this->battemplate_; } 153 141 154 142 /** 155 143 @brief Set the dimensions of the playing field. … … 191 179 { return this->ballaccfactor_; } 192 180 193 /** 194 @brief Set the speed of the bats. 195 @param batspeed The speed of the bats. 196 */ 197 void setBatSpeed(float batspeed) 198 { this->batspeed_ = batspeed; } 199 /** 200 @brief Get the speed of the bats. 201 @return Returns the speed of the bats. 202 */ 203 float getBatSpeed() const 204 { return this->batspeed_; } 205 206 /** 207 @brief Set the length of the bats. 208 @param batlength The length of the bats (in z-direction) as a percentage of the height of the playing field. 209 */ 210 void setBatLength(float batlength) 211 { this->batlength_ = batlength; } 212 /** 213 @brief Get the length of the bats. 214 @return Returns the length of the bats (in z-direction) as a percentage of the height of the playing field. 215 */ 216 float getBatLength() const 217 { return this->batlength_; } 218 181 219 182 /** 220 183 @brief Set the template for the stones. … … 250 213 251 214 std::string balltemplate_; //!< The template for the ball. 252 std::string battemplate_; //!< The template for the bats.253 215 std::string WallTemplate_; 254 216 std::string stoneTemplate_; … … 256 218 float ballspeed_; //!< The speed of then ball. 257 219 float ballaccfactor_; //!< The acceleration factor of the ball. 258 float batspeed_; //!< The speed of the bat.259 float batlength_; //!< The length of the bat (in z-direction) as a percentage of the height of the playing field.260 261 220 float width_; //!< The height of the playing field. 262 221 float height_; //!< The width of the playing field.
Note: See TracChangeset
for help on using the changeset viewer.