Changeset 11992 for code/branches/3DPacman_FS18/src/modules/pacman/Pacman.h
- Timestamp:
- May 24, 2018, 3:36:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/Pacman.h
r11979 r11992 21 21 * 22 22 * Author: 23 * Florian Zinggeler23 * Marc Dreher 24 24 * Co-authors: 25 25 * ... … … 40 40 #include "PacmanPointSphere.h" 41 41 #include "PacmanPointAfraid.h" 42 #include "Highscore.h"43 //#include "PlayerInfo.h"44 42 45 43 … … 73 71 virtual void tick(float dt) override; 74 72 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 75 84 void levelUp(); 76 85 bool collis(Vector3 one, Vector3 other); … … 78 87 void posreset(); 79 88 void takePoint(PacmanPointSphere* taken); 80 PacmanGelb* getPlayer();81 int getPoints();82 89 void setAfraid(); 83 90 void setNormal(); 84 bool isdead();85 91 void dead(float dt); 86 bool getAfraid();87 int getTimer();88 int getLives();89 int getLevel();90 92 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; 100 94 Vector3 currentPosition; 101 PacmanGelb* player;95 Vector3 startposplayer = Vector3(0,10,150); 102 96 bool bcolli = false; 103 float timer = 0; 104 Vector3 startposplayer = Vector3(0,10,150); 97 105 98 int totallevelpoint; 106 //bool firstGame;99 107 100 bool afraid = false; 108 101 bool death = false; 109 102 float deathtime = 0; 110 111 private: 103 float timer = 0; 112 104 113 114 Timer endGameTimer;115 105 int level; 116 106 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; 146 108 147 109 };
Note: See TracChangeset
for help on using the changeset viewer.