Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.h @ 10114

Last change on this file since 10114 was 10114, checked in by sriedel, 10 years ago

Started copying all over again, HUD doesnt work

File size: 2.7 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 *      Florian Zinggeler
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30    @file DodgeRace.h
31    @brief Gametype.
32    @ingroup DodgeRace
33*/
34
35#ifndef _DodgeRace_H__
36#define _DodgeRace_H__
37
38//#include "dodgerace2/DodgeRacePrereqs.h"
39
40#include "DodgeRaceCenterPoint.h"
41#include "DodgeRaceHUDinfo.h"
42
43#include "gametypes/Deathmatch.h"
44
45#include "DodgeRaceCenterPoint.h"
46
47#include "tools/Timer.h"
48
49namespace orxonox
50{
51
52    class DodgeRace : public Deathmatch
53    {
54        public:
55            DodgeRace(Context* context);
56
57            virtual void start();
58            virtual void end();
59            virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command
60
61            //void spawnEnemy();
62
63            void setCenterpoint(DodgeRaceCenterPoint* center)
64            { this->center_ = center; }
65
66            int getLives(){return this->lives;}
67            int getLevel(){return this->level;}
68            int getPoints(){return this->point;}
69            int getMultiplier(){return this->multiplier;}
70
71            void costLife();
72            void levelUp();
73            void addPoints(int numPoints);
74
75            // checks if multiplier should be reset.
76            void comboControll();
77            void init();
78            int lives;
79            int multiplier;
80            bool bEndGame;
81            bool bShowLevel;
82        private:
83            void toggleShowLevel(){bShowLevel = !bShowLevel;}
84            //WeakPtr<DodgeRaceShip> getPlayer();
85            WeakPtr<DodgeRaceCenterPoint> center_;
86            //WeakPtr<DodgeRaceShip> player;
87
88            Timer enemySpawnTimer;
89            Timer comboTimer;
90            Timer showLevelTimer;
91            //Context* context;
92            int level;
93            int point;
94            bool b_combo;
95    };
96}
97
98#endif /* _DodgeRace_H__ */
Note: See TracBrowser for help on using the repository browser.