Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 21, 2019, 2:19:16 PM (6 years ago)
Author:
ahuwyler
Message:

A new Game is born

File:
1 edited

Legend:

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

    r12210 r12212  
    4141
    4242#include "gametypes/Deathmatch.h"
    43 #include "PongCenterpoint.h"
     43#include "OrxoBloxCenterpoint.h"
    4444
    4545namespace orxonox
     
    4848    /**
    4949    @brief
    50         Implements a Pong minigame (<a href="http://en.wikipedia.org/wiki/Pong">Wikipedia::Pong</a>).
    51         It connects the different entities present in a game of Pong.
     50        Implements a OrxoBlox minigame (<a href="http://en.wikipedia.org/wiki/OrxoBlox">Wikipedia::OrxoBlox</a>).
     51        It connects the different entities present in a game of OrxoBlox.
    5252
    53         - The @ref orxonox::PongCenterpoint "PongCenterpoint" is the playing field for the Pong minigame, it allows for configuration of the minigame, e.g. by setting the size of the playing field, or the length of the @ref orxonox::PongBat "PongBats". The playing field is always in the x,y-plane, the x-axis being the horizontal and the z-axis being the vertical axis.<br />
    54         The Pong class redistributes the important parameters defined in @ref orxonox::PongCenterpoint "PongCenterpoint" to the other entities, that need to know them, e.g. the @ref orxonox::PongBall "PongBall" and the @ref orxonox::PongBat "PongBats".<br />
    55         The @ref orxonox::PongCenterpoint "PongCenterpoint" needs to exist in a level with the @ref orxonox::Gametype "Gametype" <em>Pong</em>.
    56         - The @ref orxonox::PongBall "PongBall" is the ball both players play with. The @ref orxonox::PongBall "PongBall" both implements the movement of the ball, as well as the influence of the boundaries and consequently, also the bouncing (off the upper and lower delimiters, and as off the @ref orxonox::PongBat "PongBats") of the ball and the effects of the failure of a player to catch the ball (i.e. the scoring of the other player).
    57         - The two @ref orxonox::PongBat "PongBats" are the entities through which the players can actively participate in the game, by controlling them. The @ref orxonox::PongBat "PongBat" class manages the movement (and restrictions thereof) and the influence of the players on the bats.
     53        - The @ref orxonox::OrxoBloxCenterpoint "OrxoBloxCenterpoint" is the playing field for the OrxoBlox minigame, it allows for configuration of the minigame, e.g. by setting the size of the playing field, or the length of the @ref orxonox::OrxoBloxBat "OrxoBloxBats". The playing field is always in the x,y-plane, the x-axis being the horizontal and the z-axis being the vertical axis.<br />
     54        The OrxoBlox class redistributes the important parameters defined in @ref orxonox::OrxoBloxCenterpoint "OrxoBloxCenterpoint" to the other entities, that need to know them, e.g. the @ref orxonox::OrxoBloxBall "OrxoBloxBall" and the @ref orxonox::OrxoBloxBat "OrxoBloxBats".<br />
     55        The @ref orxonox::OrxoBloxCenterpoint "OrxoBloxCenterpoint" needs to exist in a level with the @ref orxonox::Gametype "Gametype" <em>OrxoBlox</em>.
     56        - The @ref orxonox::OrxoBloxBall "OrxoBloxBall" is the ball both players play with. The @ref orxonox::OrxoBloxBall "OrxoBloxBall" both implements the movement of the ball, as well as the influence of the boundaries and consequently, also the bouncing (off the upper and lower delimiters, and as off the @ref orxonox::OrxoBloxBat "OrxoBloxBats") of the ball and the effects of the failure of a player to catch the ball (i.e. the scoring of the other player).
     57        - The two @ref orxonox::OrxoBloxBat "OrxoBloxBats" are the entities through which the players can actively participate in the game, by controlling them. The @ref orxonox::OrxoBloxBat "OrxoBloxBat" class manages the movement (and restrictions thereof) and the influence of the players on the bats.
    5858
    5959    @author
    6060        Fabian 'x3n' Landau
    6161
    62     @ingroup Pong
     62    @ingroup OrxoBlox
    6363    */
    64     class _PongExport Pong : public Deathmatch
     64    class _OrxoBloxExport OrxoBlox : public Deathmatch
    6565    {
    6666        public:
    67             Pong(Context* context); //!< Constructor. Registers and initializes the object.
    68             virtual ~Pong(); //!< Destructor. Cleans up, if initialized.
     67            OrxoBlox(Context* context); //!< Constructor. Registers and initializes the object.
     68            virtual ~OrxoBlox(); //!< Destructor. Cleans up, if initialized.
    6969
    70             virtual void start() override; //!< Starts the Pong minigame.
    71             virtual void end() override; ///!< Ends the Pong minigame.
     70            virtual void start() override; //!< Starts the OrxoBlox minigame.
     71            virtual void end() override; ///!< Ends the OrxoBlox minigame.
    7272
    7373            virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player.
     
    7676
    7777            /**
    78             @brief Set the PongCenterpoint (the playing field).
    79             @param center A pointer to the PongCenterpoint to be set.
     78            @brief Set the OrxoBloxCenterpoint (the playing field).
     79            @param center A pointer to the OrxoBloxCenterpoint to be set.
    8080            */
    81             void setCenterpoint(PongCenterpoint* center)
     81            void setCenterpoint(OrxoBloxCenterpoint* center)
    8282                { this->center_ = center; }
    8383            void setConfigValues(); //!< Makes scoreLimit configurable.
     
    9292            void cleanup(); //!< Cleans up the Gametype by destroying the ball and the bats.
    9393
    94             WeakPtr<PongCenterpoint> center_; //!< The playing field.
    95             WeakPtr<PongBall> ball_; //!< The Pong ball.
    96             WeakPtr<PongBat> bat_[2]; //!< The two bats.
     94            WeakPtr<OrxoBloxCenterpoint> center_; //!< The playing field.
     95            WeakPtr<OrxoBloxBall> ball_; //!< The OrxoBlox ball.
     96            WeakPtr<OrxoBloxBat> bat_[2]; //!< The two bats.
    9797            Timer starttimer_; //!< A timer to delay the start of the game.
    9898            int scoreLimit_; //!< If a player scored that much points, the game is ended.
     
    100100}
    101101
    102 #endif /* _Pong_H__ */
     102#endif /* _OrxoBlox_H__ */
Note: See TracChangeset for help on using the changeset viewer.