Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 11381 was 11381, checked in by jkindle, 7 years ago

Works whoow

File size: 2.0 KB
RevLine 
[11370]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:
[11378]23 *      Fabian 'x3n' Landau
[11370]24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
[11378]30    @file Pong.h
31    @brief Declaration of the Pong class.
32    @ingroup Pong
[11370]33*/
34
[11378]35#ifndef _SOB_H__
36#define _SOB_H__
[11370]37
[11378]38#include "superorxobros/SOBPrereqs.h"
[11370]39
40#include "tools/Timer.h"
41
[11378]42#include "gametypes/Deathmatch.h"
43#include "SOBCenterpoint.h"
44
[11370]45namespace orxonox
46{
47
[11378]48 
49    class _SOBExport SOB : public Deathmatch
[11370]50    {
51        public:
[11378]52            SOB(Context* context); //!< Constructor. Registers and initializes the object.
53            virtual ~SOB(); //!< Destructor. Cleans up, if initialized.
[11370]54
[11378]55       
56            void setCenterpoint(SOBCenterpoint* center)
57                { this->center_ = center; }
[11381]58                virtual void start() override;
59            virtual void end() override;
60            virtual void spawnPlayer(PlayerInfo* player) override;
61                        PlayerInfo* getPlayer() const;
62
63       
[11378]64         
65        protected:
66       
[11370]67
[11378]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;
[11381]72       
[11378]73         
[11370]74    };
75}
76
[11378]77#endif /* _Pong_H__ */
Note: See TracBrowser for help on using the repository browser.