Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 4, 2017, 5:04:59 PM (7 years ago)
Author:
vyang
Message:

Spawn Funktion fuer die Asteroiden veraendert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids/AsteroidsCenterPoint.h

    r11516 r11528  
    4747            AsteroidsCenterPoint(Context* context); //checks whether the gametype is actually Invader.
    4848
     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
    4962        private:
    5063            void checkGametype();
     64            //Spielfeld liegt in x-z Ebene, x ist LeftRight(Horizontale), z ist UpDown (Vertikale)
     65            float width_;
     66            float height_;
    5167
    5268    };
Note: See TracChangeset for help on using the changeset viewer.