Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 30, 2017, 2:42:31 PM (3 years ago)
Author:
jkindle
Message:

Works whoow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBCenterpoint.h

    r11379 r11381  
    1 /*
    21/*
    32 *   ORXONOX - the hottest 3D action shooter ever to exist
     
    2221 *
    2322 *   Author:
    24  *      Fabian 'x3n' Landau
     23 *      Fabien Vultier
    2524 *   Co-authors:
    2625 *      ...
     
    2827 */
    2928
    30 /**
    31     @file PongCenterpoint.h
    32     @brief Declaration of the PongCenterpoint class.
    33     @ingroup Pong
    34 */
    35 
    3629#ifndef _SOBCenterpoint_H__
    3730#define _SOBCenterpoint_H__
    3831
    3932#include "superorxobros/SOBPrereqs.h"
    40 
    41 #include <string>
    42 
    43 #include <util/Math.h>
    44 
    4533#include "worldentities/StaticEntity.h"
    4634
     
    4836{
    4937   
    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    */
    5242    class _SOBExport SOBCenterpoint : public StaticEntity
    5343    {
    5444        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.
    5646            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           
    5754
    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_;
    6063   
    61 
    62         private:
    63             void checkGametype(); //!< Checks whether the gametype is Pong and if it is, sets its centerpoint.
     64       
     65            float cameraOffset_;
    6466    };
    6567}
Note: See TracChangeset for help on using the changeset viewer.