Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2019, 3:00:44 PM (5 years ago)
Author:
ahuwyler
Message:

A Stone is in the game/ Templates are ajusted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxCenterpoint.h

    r12266 r12307  
    217217                { return this->batlength_; }
    218218
     219            /**
     220            @brief Set the template for the stones.
     221            @param templateName The template name to be applied to each stone.
     222            */
     223            void setStoneTemplate(const std::string& templateName)
     224                { this->stoneTemplate_ = templateName; }
     225            /**
     226            @brief Get the template for the stones.
     227            @return Returns the template name to be applied to each stone.
     228            */
     229            const std::string& getStoneTemplate(void) const
     230                { return this->stoneTemplate_; }
     231           
     232
     233            /**
     234            @brief Set the template for the bricks.
     235            @param templateName The template name to be applied to each brick.
     236            */
     237            void setWallTemplate(const std::string& templateName)
     238                { this->WallTemplate_ = templateName; }
     239
     240            /**
     241            @brief Get the template for the bricks.
     242            @return Returns the template name to be applied to each brick.
     243            */
     244            const std::string& getWallTemplate(void) const
     245                { return this->WallTemplate_; }
     246
     247
    219248        private:
    220249            void checkGametype(); //!< Checks whether the gametype is OrxoBlox and if it is, sets its centerpoint.
     
    222251            std::string balltemplate_; //!< The template for the ball.
    223252            std::string battemplate_; //!< The template for the bats.
     253            std::string WallTemplate_;
     254            std::string stoneTemplate_;
    224255
    225256            float ballspeed_; //!< The speed of then ball.
     
    230261            float width_; //!< The height of the playing field.
    231262            float height_; //!< The width of the playing field.
     263
     264           
    232265    };
    233266}
Note: See TracChangeset for help on using the changeset viewer.