Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Tes Game 3

  • Property svn:executable set to *
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 _Pacman_H__
36#define _Pacman_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 _PacmanExport Pacman : public Deathmatch
61    {
62       public:
63            Pacman(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            bool collis(Vector3 one, Vector3 other);
74            void catched();
75            void posreset();
76            void takePoint();
77            void getPlayer();
78
79
80            bool bEndGame;
81            bool bShowLevel;
82            int lives;
83            int multiplier;
84            float counter;
85            int pattern;
86            float currentPosition;
87            float lastPosition;
88
89       private:
90            PacmanGelb* player;
91            PacmanGhost[] 
92            Vector3 currentPosition;
93
94
95            Timer endGameTimer;
96            WeakPtr<PlayerInfo> playerInfo_;
97
98            WeakPtr<DodgeRaceCenterPoint> center_;
99            int level;
100            int point;
101            bool b_combo;
102
103            Timer enemySpawnTimer;
104            Timer comboTimer;
105            Timer showLevelTimer;
106
107
108         /*
109
110            //void spawnEnemy();
111
112
113
114
115
116
117
118
119
120
121
122
123        private:
124
125
126
127
128            //Context* context;
129            */
130    };
131}
132
133#endif /* _DodgeRace_H__ */
Note: See TracBrowser for help on using the repository browser.