Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

Testversion 1

  • Property svn:executable set to *
File size: 2.7 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"
[11898]42
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
63    class _PacmanExport Pacman : public Deathmatch
64    {
65       public:
66            Pacman(Context* context);
67
68            virtual void start() override;
69            virtual void end() override;
70
71            virtual void tick(float dt) override;
72
[11992]73            PacmanGelb* getPlayer();
74            int getPoints();
75            bool getAfraid();
76            int getTimer();
77            int getLives();
78            int getLevel();
79            int getTotalpoints();
80            bool isdead();
81           
82       private:
83
[11898]84            void levelUp();
85            bool collis(Vector3 one, Vector3 other);
[11976]86            void catched(float dt);
[11898]87            void posreset();
88            void takePoint(PacmanPointSphere* taken);
[11941]89            void setAfraid();
[11945]90            void setNormal();
[11976]91            void dead(float dt);
[11898]92
[11992]93            PacmanGelb* player;
[11898]94            Vector3 currentPosition;
[11992]95            Vector3 startposplayer = Vector3(0,10,150);
[11898]96            bool bcolli = false;
[11992]97           
[11956]98            int totallevelpoint;
[11992]99           
[11944]100            bool afraid = false;
[11976]101            bool death = false;
102            float deathtime = 0;
[11992]103            float timer = 0;
[11898]104
105            int level;
106            int point;
[11992]107            int lives;
[11931]108       
[11898]109    };
110}
111
[11931]112#endif /* _Pacman_H__ */
Note: See TracBrowser for help on using the repository browser.