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 | #include "PacmanGhost.h" |
---|
40 | #include "PacmanPointSphere.h" |
---|
41 | #include "Highscore.h" |
---|
42 | //#include "PlayerInfo.h" |
---|
43 | |
---|
44 | |
---|
45 | #include "core/EventIncludes.h" |
---|
46 | #include "core/command/Executor.h" |
---|
47 | #include "core/config/ConfigValueIncludes.h" |
---|
48 | |
---|
49 | #include "gamestates/GSLevel.h" |
---|
50 | #include "chat/ChatManager.h" |
---|
51 | #include <vector> |
---|
52 | |
---|
53 | // ! HACK |
---|
54 | #include "infos/PlayerInfo.h" |
---|
55 | |
---|
56 | #include "core/command/ConsoleCommand.h" |
---|
57 | |
---|
58 | #include "gametypes/Deathmatch.h" |
---|
59 | #include "tools/Timer.h" |
---|
60 | |
---|
61 | namespace orxonox |
---|
62 | { |
---|
63 | |
---|
64 | class _PacmanExport Pacman : public Deathmatch |
---|
65 | { |
---|
66 | public: |
---|
67 | Pacman(Context* context); |
---|
68 | |
---|
69 | virtual void start() override; |
---|
70 | virtual void end() override; |
---|
71 | |
---|
72 | virtual void tick(float dt) override; |
---|
73 | |
---|
74 | virtual void playerPreSpawn(PlayerInfo* player) override; |
---|
75 | |
---|
76 | void levelUp(); |
---|
77 | bool collis(Vector3 one, Vector3 other); |
---|
78 | void catched(); |
---|
79 | void posreset(); |
---|
80 | void takePoint(PacmanPointSphere* taken); |
---|
81 | PacmanGelb* getPlayer(); |
---|
82 | int getPoints(); |
---|
83 | |
---|
84 | |
---|
85 | bool bEndGame; |
---|
86 | bool bShowLevel; |
---|
87 | int lives; |
---|
88 | int multiplier; |
---|
89 | float counter; |
---|
90 | int pattern; |
---|
91 | |
---|
92 | float lastPosition; |
---|
93 | |
---|
94 | private: |
---|
95 | PacmanGelb* player; |
---|
96 | PacmanGhost[] |
---|
97 | Vector3 currentPosition; |
---|
98 | bool bcolli = false; |
---|
99 | Vector3 startposplayer = Vector3(0,10,245); |
---|
100 | int totallevelpoint = 1; |
---|
101 | |
---|
102 | |
---|
103 | Timer endGameTimer; |
---|
104 | int level; |
---|
105 | int point; |
---|
106 | bool b_combo; |
---|
107 | |
---|
108 | Timer enemySpawnTimer; |
---|
109 | Timer comboTimer; |
---|
110 | Timer showLevelTimer; |
---|
111 | |
---|
112 | |
---|
113 | /* |
---|
114 | |
---|
115 | //void spawnEnemy(); |
---|
116 | |
---|
117 | |
---|
118 | |
---|
119 | |
---|
120 | |
---|
121 | |
---|
122 | |
---|
123 | |
---|
124 | |
---|
125 | |
---|
126 | |
---|
127 | |
---|
128 | private: |
---|
129 | |
---|
130 | |
---|
131 | |
---|
132 | |
---|
133 | //Context* context; |
---|
134 | */ |
---|
135 | }; |
---|
136 | } |
---|
137 | |
---|
138 | #endif /* _DodgeRace_H__ */ |
---|