Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2018, 3:36:40 PM (7 years ago)
Author:
dreherm
Message:

Testversion 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/Pacman.h

    r11979 r11992  
    2121 *
    2222 *   Author:
    23  *      Florian Zinggeler
     23 *      Marc Dreher
    2424 *   Co-authors:
    2525 *      ...
     
    4040#include "PacmanPointSphere.h"
    4141#include "PacmanPointAfraid.h"
    42 #include "Highscore.h"
    43 //#include "PlayerInfo.h"
    4442
    4543
     
    7371            virtual void tick(float dt) override;
    7472
     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
    7584            void levelUp();
    7685            bool collis(Vector3 one, Vector3 other);
     
    7887            void posreset();
    7988            void takePoint(PacmanPointSphere* taken);
    80             PacmanGelb* getPlayer();
    81             int getPoints();
    8289            void setAfraid();
    8390            void setNormal();
    84             bool isdead();
    8591            void dead(float dt);
    86             bool getAfraid();
    87             int getTimer();
    88             int getLives();
    89             int getLevel();
    9092
    91 
    92             bool bEndGame;
    93             bool bShowLevel;
    94             int lives;
    95             int multiplier;
    96             float counter;
    97             int pattern;
    98             float lastPosition;
    99 
     93            PacmanGelb* player;
    10094            Vector3 currentPosition;
    101             PacmanGelb* player;
     95            Vector3 startposplayer = Vector3(0,10,150);
    10296            bool bcolli = false;
    103             float timer = 0;
    104             Vector3 startposplayer = Vector3(0,10,150);
     97           
    10598            int totallevelpoint;
    106             //bool firstGame;
     99           
    107100            bool afraid = false;
    108101            bool death = false;
    109102            float deathtime = 0;
    110            
    111        private:
     103            float timer = 0;
    112104
    113 
    114             Timer endGameTimer;
    115105            int level;
    116106            int point;
    117             bool b_combo;
    118 
    119             Timer enemySpawnTimer;
    120             Timer comboTimer;
    121             Timer showLevelTimer;
    122 
    123 /*
    124 std::string sDeathMessage;
    125 const std::vector<std::string> DeathMessage7 = {
    126                 "You should really try that again",
    127                 "You can do better, can you?",
    128                 "Hey, maybe you get a participation award, that's good isn't it?",
    129                 "Congratulations, you get a medal, a wooden one",
    130                 "That was flappin bad!",
    131                 "Well, that was a waste of time",
    132                 "You suck!",
    133                 "Maybe try SuperOrxoBros. That game is not as hard.",
    134                 "Here's a tip: Try not to fly into these grey thingies.",
    135                 "We won't comment on that."};
    136             const std::vector<std::string> DeathMessage20 = {
    137                 "Getting better!",
    138                 "Training has paid off, huh?",
    139                 "Good average!",
    140                 "That was somehow enjoyable to watch",
    141                 "Flappin average",
    142                 "Getting closer to something",
    143                 "That wasn't crap, not bad",
    144                 "Surprisingly not bad."};
    145   */     
     107            int lives;
    146108       
    147109    };
Note: See TracChangeset for help on using the changeset viewer.