- Timestamp:
- Mar 21, 2019, 2:19:16 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.h
r12210 r12212 41 41 42 42 #include "gametypes/Deathmatch.h" 43 #include " PongCenterpoint.h"43 #include "OrxoBloxCenterpoint.h" 44 44 45 45 namespace orxonox … … 48 48 /** 49 49 @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. 52 52 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. 58 58 59 59 @author 60 60 Fabian 'x3n' Landau 61 61 62 @ingroup Pong62 @ingroup OrxoBlox 63 63 */ 64 class _ PongExport Pong: public Deathmatch64 class _OrxoBloxExport OrxoBlox : public Deathmatch 65 65 { 66 66 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. 69 69 70 virtual void start() override; //!< Starts the Pongminigame.71 virtual void end() override; ///!< Ends the Pongminigame.70 virtual void start() override; //!< Starts the OrxoBlox minigame. 71 virtual void end() override; ///!< Ends the OrxoBlox minigame. 72 72 73 73 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. … … 76 76 77 77 /** 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. 80 80 */ 81 void setCenterpoint( PongCenterpoint* center)81 void setCenterpoint(OrxoBloxCenterpoint* center) 82 82 { this->center_ = center; } 83 83 void setConfigValues(); //!< Makes scoreLimit configurable. … … 92 92 void cleanup(); //!< Cleans up the Gametype by destroying the ball and the bats. 93 93 94 WeakPtr< PongCenterpoint> center_; //!< The playing field.95 WeakPtr< PongBall> ball_; //!< The Pongball.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. 97 97 Timer starttimer_; //!< A timer to delay the start of the game. 98 98 int scoreLimit_; //!< If a player scored that much points, the game is ended. … … 100 100 } 101 101 102 #endif /* _ Pong_H__ */102 #endif /* _OrxoBlox_H__ */
Note: See TracChangeset
for help on using the changeset viewer.