Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Added mushrooms and deadzone

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            virtual void tick(float dt) override;
55
56       
57            void setCenterpoint(SOBCenterpoint* center)
58                { this->center_ = center; }
59                virtual void start() override;
60            virtual void end() override;
61            virtual void spawnPlayer(PlayerInfo* player) override;
62                        PlayerInfo* getPlayer() const;
63
64       
65         
66        protected:
67       
68
69            void cleanup(); //!< Cleans up the Gametype
70             WeakPtr<SOBCenterpoint> center_;
71            WeakPtr<SOBFigure> figure_;
72            WeakPtr<Camera> camera;
73       
74         
75    };
76}
77
78#endif /* _Pong_H__ */
Note: See TracBrowser for help on using the repository browser.