Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBCenterpoint.h @ 11379

Last change on this file since 11379 was 11379, checked in by jkindle, 3 years ago

added some structire. Next to do, fix Centerpoint and error when compiling

File size: 1.8 KB
Line 
1/*
2/*
3 *   ORXONOX - the hottest 3D action shooter ever to exist
4 *                    > www.orxonox.net <
5 *
6 *
7 *   License notice:
8 *
9 *   This program is free software; you can redistribute it and/or
10 *   modify it under the terms of the GNU General Public License
11 *   as published by the Free Software Foundation; either version 2
12 *   of the License, or (at your option) any later version.
13 *
14 *   This program is distributed in the hope that it will be useful,
15 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
16 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 *   GNU General Public License for more details.
18 *
19 *   You should have received a copy of the GNU General Public License
20 *   along with this program; if not, write to the Free Software
21 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
22 *
23 *   Author:
24 *      Fabian 'x3n' Landau
25 *   Co-authors:
26 *      ...
27 *
28 */
29
30/**
31    @file PongCenterpoint.h
32    @brief Declaration of the PongCenterpoint class.
33    @ingroup Pong
34*/
35
36#ifndef _SOBCenterpoint_H__
37#define _SOBCenterpoint_H__
38
39#include "superorxobros/SOBPrereqs.h"
40
41#include <string>
42
43#include <util/Math.h>
44
45#include "worldentities/StaticEntity.h"
46
47namespace orxonox
48{
49   
50   
51 
52    class _SOBExport SOBCenterpoint : public StaticEntity
53    {
54        public:
55            SOBCenterpoint(Context* context); //!< Constructor. Registers and initializes the object and checks whether the gametype is actually Pong.
56            virtual ~SOBCenterpoint() {}
57
58            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method to create a PongCenterpoint through XML.
59
60   
61
62        private:
63            void checkGametype(); //!< Checks whether the gametype is Pong and if it is, sets its centerpoint.
64    };
65}
66
67#endif /* _SOBCenterpoint_H__ */
Note: See TracBrowser for help on using the repository browser.