- Timestamp:
- Nov 27, 2017, 5:00:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2D.h
r11593 r11608 50 50 #include "gamestates/GSLevel.h" 51 51 #include "chat/ChatManager.h" 52 52 #include <vector> 53 53 54 54 // ! HACK … … 58 58 59 59 #include "gametypes/Deathmatch.h" 60 #include "tools/Timer.h" 60 61 61 62 namespace orxonox … … 69 70 virtual void start() override; 70 71 virtual void end() override; 72 71 73 virtual void tick(float dt) override; 74 75 virtual void playerPreSpawn(PlayerInfo* player) override; 76 77 void levelUp(); 78 79 int getLives(){return this->lives;} 80 int getLevel(){return this->level;} 81 int getPoints(){return this->point;} 82 int getMultiplier(){return this->multiplier;} 72 83 73 84 void setCenterpoint(Asteroids2DCenterPoint* center) 74 85 { this->center_ = center; } 86 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 75 87 76 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 88 // checks if multiplier should be reset. 89 void costLife(); 90 77 91 bool bEndGame; 92 bool bShowLevel; 93 int lives; 94 int multiplier; 95 float counter; 96 int pattern; 97 float currentPosition; 98 float lastPosition; 78 99 79 100 private: 80 101 Timer endGameTimer; 81 102 82 103 Asteroids2DShip* getPlayer(); 83 104 WeakPtr<Asteroids2DShip> player; 105 std::vector<Asteroids2DCube*> cubeList; 106 void toggleShowLevel(){bShowLevel = !bShowLevel;} 107 void addPoints(int numPoints); 108 84 109 WeakPtr<Asteroids2DCenterPoint> center_; 110 int level; 111 int point; 112 bool b_combo; 113 114 Timer enemySpawnTimer; 115 Timer comboTimer; 116 Timer showLevelTimer; 85 117 86 118
Note: See TracChangeset
for help on using the changeset viewer.