- Timestamp:
- Mar 30, 2017, 2:42:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBCenterpoint.h
r11379 r11381 1 /*2 1 /* 3 2 * ORXONOX - the hottest 3D action shooter ever to exist … … 22 21 * 23 22 * Author: 24 * Fabi an 'x3n' Landau23 * Fabien Vultier 25 24 * Co-authors: 26 25 * ... … … 28 27 */ 29 28 30 /**31 @file PongCenterpoint.h32 @brief Declaration of the PongCenterpoint class.33 @ingroup Pong34 */35 36 29 #ifndef _SOBCenterpoint_H__ 37 30 #define _SOBCenterpoint_H__ 38 31 39 32 #include "superorxobros/SOBPrereqs.h" 40 41 #include <string>42 43 #include <util/Math.h>44 45 33 #include "worldentities/StaticEntity.h" 46 34 … … 48 36 { 49 37 50 51 38 /** 39 @brief 40 @brief The SOBCenterpoint is a StaticEntity which represents the level of the minigame. All platforms, enemies and items are attached to the SOBCenterpoint. 41 */ 52 42 class _SOBExport SOBCenterpoint : public StaticEntity 53 43 { 54 44 public: 55 SOBCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Pong.45 SOBCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually SOB. 56 46 virtual ~SOBCenterpoint() {} 47 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a SOBCenterpoint through XML. 48 49 void setFigureTemplate(const std::string& newTemplate) 50 { this->figureTemplate_ = newTemplate; } 51 const std::string& getFigureTemplate() const 52 { return this->figureTemplate_; } 53 57 54 58 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a PongCenterpoint through XML. 59 55 void setCameraOffset(const float cameraOffset) 56 { this->cameraOffset_ = cameraOffset; } 57 float getCameraOffset() const 58 { return cameraOffset_; } 59 private: 60 void checkGametype(); 61 62 std::string figureTemplate_; 60 63 61 62 private: 63 void checkGametype(); //!< Checks whether the gametype is Pong and if it is, sets its centerpoint. 64 65 float cameraOffset_; 64 66 }; 65 67 }
Note: See TracChangeset
for help on using the changeset viewer.