- Timestamp:
- May 22, 2014, 3:05:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickupsFS14/src/modules/jump/JumpProjectile.h
r10050 r10074 67 67 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 68 68 69 /**70 @brief Set the dimensions of the playing field.71 @param width The width of the playing field.72 @param height The height of the playing field.73 */74 69 void setFieldDimension(float width, float height) 75 70 { this->fieldWidth_ = width; this->fieldHeight_ = height; } 76 /** 77 @brief Get the dimensions of the playing field. 78 @param dimension A vector with the width as the first and height as the second component. 79 */ 71 80 72 void setFieldDimension(const Vector2& dimension) 81 73 { this->setFieldDimension(dimension.x, dimension.y); } 82 /** 83 @brief Get the dimensions of the playing field. 84 @return Returns a vector with the width as the first and height as the second component. 85 */ 74 86 75 Vector2 getFieldDimension() const 87 76 { return Vector2(this->fieldWidth_, this->fieldHeight_); } 88 77 89 78 90 void setFigure(WeakPtr<JumpFigure> bats); //!< Set the bats for the ball. 91 92 virtual void accelerateFigure(); 93 virtual void touchFigure(); 79 void setFigure(WeakPtr<JumpFigure> figure); 94 80 95 81 protected:
Note: See TracChangeset
for help on using the changeset viewer.