- Timestamp:
- Nov 12, 2014, 3:58:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRace.h
r10117 r10118 38 38 #include "dodgerace2/DodgeRacePrereqs.h" 39 39 40 //#include "DodgeRaceCenterPoint.h" 40 #include "DodgeRaceCenterPoint.h" // Necessary for WeakPointer?? 41 //#include "DodgeRaceShip.h" // DO NOT include in Header. Will cause forward declaration issues 42 41 43 //#include "DodgeRaceHUDinfo.h" 42 //#include "DodgeRaceShip.h" 44 45 46 #include "core/CoreIncludes.h" 47 #include "core/EventIncludes.h" 48 #include "core/command/Executor.h" 49 #include "core/config/ConfigValueIncludes.h" 50 51 #include "gamestates/GSLevel.h" 52 #include "chat/ChatManager.h" 53 54 // ! HACK 55 #include "infos/PlayerInfo.h" 56 57 #include "core/command/ConsoleCommand.h" 58 #include "worldentities/BigExplosion.h" 43 59 44 60 #include "gametypes/Deathmatch.h" … … 48 64 { 49 65 50 class DodgeRace : public Deathmatch66 class _DodgeRaceExport DodgeRace : public Deathmatch 51 67 { 52 68 public: 53 69 DodgeRace(Context* context); 54 70 71 void init(); 72 55 73 virtual void start(); 56 virtual void end(); 57 virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command 74 //virtual void end(); 58 75 59 //void spawnEnemy(); 60 61 void setCenterpoint(DodgeRaceCenterPoint* center) 62 { this->center_ = center; } 76 void levelUp(); 63 77 64 78 int getLives(){return this->lives;} … … 67 81 int getMultiplier(){return this->multiplier;} 68 82 69 void costLife(); 70 void levelUp(); 71 void addPoints(int numPoints); 83 void setCenterpoint(DodgeRaceCenterPoint* center) 84 { this->center_ = center; } 72 85 73 86 // checks if multiplier should be reset. 74 87 void comboControll(); 75 void init(); 88 89 bool bEndGame; 90 bool bShowLevel; 76 91 int lives; 77 92 int multiplier; 78 bool bEndGame; 79 bool bShowLevel; 80 private: 93 94 private: 95 WeakPtr<DodgeRaceShip> getPlayer(); 96 WeakPtr<DodgeRaceShip> player; 81 97 void toggleShowLevel(){bShowLevel = !bShowLevel;} 82 WeakPtr<DodgeRaceShip> getPlayer(); 98 void addPoints(int numPoints); 99 83 100 WeakPtr<DodgeRaceCenterPoint> center_; 84 WeakPtr<DodgeRaceShip> player;85 86 Timer enemySpawnTimer;87 Timer comboTimer;88 Timer showLevelTimer;89 //Context* context;90 101 int level; 91 102 int point; 92 103 bool b_combo; 104 105 Timer enemySpawnTimer; 106 Timer comboTimer; 107 Timer showLevelTimer; 108 109 110 /* virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command 111 112 //void spawnEnemy(); 113 114 115 116 117 118 void costLife(); 119 120 121 122 123 124 125 private: 126 127 128 129 130 //Context* context; 131 */ 93 132 }; 94 133 }
Note: See TracChangeset
for help on using the changeset viewer.