- Timestamp:
- Oct 23, 2017, 3:19:08 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrx.h
r11481 r11503 36 36 #define _FlappyOrx_H__ 37 37 38 #include "flappyorx/FlappyOrxPrereqs.h" 39 38 40 #include "gametypes/Deathmatch.h" 41 #include "tools/Timer.h" 39 42 40 43 namespace orxonox … … 48 51 virtual void start() override; 49 52 virtual void end() override; 50 53 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 54 55 void spawnEnemy(); 56 57 void setCenterpoint(FlappyOrxCenterPoint* center); 58 59 int getLives(){return this->lives;} 60 int getLevel(){return this->level;} 61 int getPoints(){return this->point;} 62 int getMultiplier(){return this->multiplier;} 63 64 void costLife(); 65 void levelUp(); 66 void addPoints(int numPoints); 67 // checks if multiplier should be reset. 68 void comboControll(); 69 int lives; 70 int multiplier; 71 bool bEndGame; 72 bool bShowLevel; 51 73 private: 52 74 void toggleShowLevel(){bShowLevel = !bShowLevel;} 75 FlappyOrxShip* getPlayer(); 76 WeakPtr<FlappyOrxCenterPoint> center_; 77 WeakPtr<FlappyOrxShip> player; 78 79 Timer enemySpawnTimer; 80 Timer comboTimer; 81 Timer showLevelTimer; 82 //Context* context; 83 int level; 84 int point; 85 bool b_combo; 53 86 }; 54 87 }
Note: See TracChangeset
for help on using the changeset viewer.