Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/3DPacman_FS19/src/modules/pacman/Pacman.h

Last change on this file was 12381, checked in by rueegseb, 5 years ago

debug message removed

  • Property svn:executable set to *
File size: 3.0 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 *      Marc Dreher
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 "PacmanPointAfraid.h"
42#include "PacmanLaser.h"
43
44#include "core/EventIncludes.h"
45#include "core/command/Executor.h"
46#include "core/config/ConfigValueIncludes.h"
47
48#include "gamestates/GSLevel.h"
49#include "chat/ChatManager.h"
50#include <vector>
51
52// ! HACK
53#include "infos/PlayerInfo.h"
54
55#include "core/command/ConsoleCommand.h"
56
57#include "gametypes/Deathmatch.h"
58#include "tools/Timer.h"
59
60namespace orxonox
61{
62    /*
63deklaration ohne Speicher zu reservieren. definition in Pacman.cc
64wird benoetigt um auf die Position global zuzugreifen
65
66analog pacman_next
67
68    */
69    extern int PACMAN_INTERNAL_PACMAN_POSITION;
70
71    class _PacmanExport Pacman : public Deathmatch
72    {
73       public:
74            Pacman(Context* context);
75
76            virtual void start() override;
77            virtual void end() override;
78
79            virtual void tick(float dt) override;
80
81            PacmanGelb* getPlayer();
82            int getPoints();
83            bool getAfraid();
84            int getTimer();
85            int getLives();
86            int getLevel();
87            int getTotalpoints();
88            bool isdead();
89           
90       private:
91
92            void levelUp();
93            bool collis(Vector3 one, Vector3 other);
94            void catched(float dt);
95            void posreset();
96            void takePoint(PacmanPointSphere* taken);
97            void setAfraid();
98            void setNormal();
99            void dead(float dt);
100
101            PacmanGelb* player;
102            Vector3 currentPosition;
103            Vector3 startposplayer = Vector3(0,10,150);
104            bool bcolli = false;
105           
106            int totallevelpoint;
107           
108            bool afraid = false;
109            bool death = false;
110            float deathtime = 0;
111            float timer = 0;
112
113            int level;
114            int point;
115            int lives;
116            int laser;
117       
118    };
119}
120
121#endif /* _Pacman_H__ */
Note: See TracBrowser for help on using the repository browser.