- Timestamp:
- Oct 30, 2017, 4:04:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Asteroid_HS17/src/modules/asteroids/Asteroids.h
r11506 r11516 33 33 */ 34 34 35 #ifndef _ Invader_H__36 #define _ Invader_H__35 #ifndef _Asteroids_H__ 36 #define _Asteroids_H__ 37 37 38 #include "invader/InvaderPrereqs.h" 39 38 #include "asteroids/AsteroidsPrereqs.h" 40 39 #include "gametypes/Deathmatch.h" 41 40 #include "tools/Timer.h" … … 44 43 { 45 44 46 class _ InvaderExport Invader: public Deathmatch45 class _AsteroidsExport Asteroids : public Deathmatch 47 46 { 48 47 public: 49 Invader(Context* context);48 Asteroids(Context* context); 50 49 51 50 virtual void start() override; 52 51 virtual void end() override; 52 virtual void tick(float dt) override; 53 53 virtual void addBots(unsigned int amount) override{} //<! overwrite function in order to bypass the addbots command 54 54 55 void spawnEnemy(); 56 57 void setCenterpoint(InvaderCenterPoint* center); 55 void setCenterpoint(AsteroidsCenterPoint* center); 58 56 59 57 int getLives(){return this->lives;} 60 int getLevel(){return this->level;}61 58 int getPoints(){return this->point;} 62 int getMultiplier(){return this->multiplier;} 59 60 void costLife(); 61 void addPoints(int numPoints); 63 62 64 void costLife();65 void levelUp();66 void addPoints(int numPoints);67 // checks if multiplier should be reset.68 void comboControll();69 63 int lives; 70 int multiplier;71 64 bool bEndGame; 72 bool bShowLevel;65 73 66 private: 74 67 void toggleShowLevel(){bShowLevel = !bShowLevel;} 75 InvaderShip* getPlayer(); 76 WeakPtr<InvaderCenterPoint> center_; 77 WeakPtr<InvaderShip> player; 68 AsteroidsShip* getPlayer(); 69 WeakPtr<AsteroidsCenterPoint> center_; 70 WeakPtr<AsteroidsShip> player; 71 WeakPtr<Camera> camera; 78 72 79 73 Timer enemySpawnTimer;
Note: See TracChangeset
for help on using the changeset viewer.