Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12383 was 12381, checked in by rueegseb, 6 years ago

debug message removed

  • Property svn:executable set to *
File size: 3.0 KB
RevLine 
[11898]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:
[11992]23 *      Marc Dreher
[11898]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"
[11933]41#include "PacmanPointAfraid.h"
[12365]42#include "PacmanLaser.h"
[11898]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{
[12313]62    /*
63deklaration ohne Speicher zu reservieren. definition in Pacman.cc
64wird benoetigt um auf die Position global zuzugreifen
[11898]65
[12313]66analog pacman_next
67
68    */
69    extern int PACMAN_INTERNAL_PACMAN_POSITION;
70
[11898]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
[11992]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
[11898]92            void levelUp();
93            bool collis(Vector3 one, Vector3 other);
[11976]94            void catched(float dt);
[11898]95            void posreset();
96            void takePoint(PacmanPointSphere* taken);
[11941]97            void setAfraid();
[11945]98            void setNormal();
[11976]99            void dead(float dt);
[11898]100
[11992]101            PacmanGelb* player;
[11898]102            Vector3 currentPosition;
[11992]103            Vector3 startposplayer = Vector3(0,10,150);
[11898]104            bool bcolli = false;
[11992]105           
[11956]106            int totallevelpoint;
[11992]107           
[11944]108            bool afraid = false;
[11976]109            bool death = false;
110            float deathtime = 0;
[11992]111            float timer = 0;
[11898]112
113            int level;
114            int point;
[11992]115            int lives;
[12381]116            int laser;
[11931]117       
[11898]118    };
119}
120
[11931]121#endif /* _Pacman_H__ */
Note: See TracBrowser for help on using the repository browser.