Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOB.h @ 11378

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

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

File size: 2.1 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Fabian 'x3n' Landau
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30    @file Pong.h
31    @brief Declaration of the Pong class.
32    @ingroup Pong
33*/
34
35#ifndef _SOB_H__
36#define _SOB_H__
37
38#include "superorxobros/SOBPrereqs.h"
39
40#include "tools/Timer.h"
41
42#include "gametypes/Deathmatch.h"
43#include "SOBCenterpoint.h"
44
45namespace orxonox
46{
47
48 
49    class _SOBExport SOB : public Deathmatch
50    {
51        public:
52            SOB(Context* context); //!< Constructor. Registers and initializes the object.
53            virtual ~SOB(); //!< Destructor. Cleans up, if initialized.
54
55       
56            void setCenterpoint(SOBCenterpoint* center)
57                { this->center_ = center; }
58            void setFigureTemplate(const std::string& newTemplate)
59                { this->figureTemplate_ = newTemplate; }
60           
61            const std::string& getFigureTemplate() const
62                { return this->figureTemplate_; }
63       
64         
65        protected:
66       
67
68            void cleanup(); //!< Cleans up the Gametype by destroying the ball and the bats.
69             WeakPtr<SOBCenterpoint> center_;
70            WeakPtr<SOBFigure> figure_;
71            WeakPtr<Camera> camera;
72         
73    };
74}
75
76#endif /* _Pong_H__ */
Note: See TracBrowser for help on using the repository browser.