Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/3DPacman_FS18/src/modules/Pacman/3DPacman.h @ 11867

Last change on this file since 11867 was 11867, checked in by dreherm, 6 years ago

Tes Game 2

  • Property svn:executable set to *
File size: 3.3 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 _3DPacman_H__
36#define _3DPacman_H__
37
38#include "PacmanGelb.h"
39
40
41#include "core/EventIncludes.h"
42#include "core/command/Executor.h"
43#include "core/config/ConfigValueIncludes.h"
44
45#include "gamestates/GSLevel.h"
46#include "chat/ChatManager.h"
47#include <vector>
48
49// ! HACK
50#include "infos/PlayerInfo.h"
51
52#include "core/command/ConsoleCommand.h"
53
54#include "gametypes/Deathmatch.h"
55#include "tools/Timer.h"
56
57namespace orxonox
58{
59
60    class _3DPacmanExport 3DPacman : public Deathmatch
61    {
62       public:
63            3DPacman(Context* context);
64
65            virtual void start() override;
66            virtual void end() override;
67
68            virtual void tick(float dt) override;
69
70            virtual void playerPreSpawn(PlayerInfo* player) override;
71
72            void levelUp();
73
74            int getLives(){return this->lives;}
75            int getLevel(){return this->level;}
76            int getPoints(){return this->point;}
77            int getMultiplier(){return this->multiplier;}
78
79            void setCenterpoint(DodgeRaceCenterPoint* center)
80                       { this->center_ = center; }
81            virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command
82
83            // checks if multiplier should be reset.
84            void comboControll();
85            void costLife();
86
87            bool bEndGame;
88            bool bShowLevel;
89            int lives;
90            int multiplier;
91            float counter;
92            int pattern;
93            float currentPosition;
94            float lastPosition;
95
96       private:
97            PacmanGelb* player;
98            PacmanGhost[] 
99            Vector3 currentPosition;
100
101
102
103            Timer endGameTimer;
104
105            DodgeRaceShip* getPlayer();
106            WeakPtr<PlayerInfo> playerInfo_;
107            std::vector<DodgeRaceCube*> cubeList;
108            void toggleShowLevel(){bShowLevel = !bShowLevel;}
109            void addPoints(int numPoints);
110
111            WeakPtr<DodgeRaceCenterPoint> center_;
112            int level;
113            int point;
114            bool b_combo;
115
116            Timer enemySpawnTimer;
117            Timer comboTimer;
118            Timer showLevelTimer;
119
120
121         /*
122
123            //void spawnEnemy();
124
125
126
127
128
129
130
131
132
133
134
135
136        private:
137
138
139
140
141            //Context* context;
142            */
143    };
144}
145
146#endif /* _DodgeRace_H__ */
Note: See TracBrowser for help on using the repository browser.