- Timestamp:
- Nov 4, 2017, 5:04:59 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/src/modules/asteroids/AsteroidsCenterPoint.h
r11516 r11528 47 47 AsteroidsCenterPoint(Context* context); //checks whether the gametype is actually Invader. 48 48 49 /** 50 @brief Set the dimensions of the playing field. 51 @param dimension A vector with the width of the playing field as first component and the height as second. 52 */ 53 void setFieldDimension(const Vector2& dimension) 54 { this->width_ = dimension.x; this->height_ = dimension.y; } 55 /** 56 @brief Get the dimensions of the playing field. 57 @return Returns a vector with the width of the playing field as first component and the height as second. 58 */ 59 Vector2 getFieldDimension() const 60 { return Vector2(this->width_, this->height_); } 61 49 62 private: 50 63 void checkGametype(); 64 //Spielfeld liegt in x-z Ebene, x ist LeftRight(Horizontale), z ist UpDown (Vertikale) 65 float width_; 66 float height_; 51 67 52 68 };
Note: See TracChangeset
for help on using the changeset viewer.