Changeset 10574 for code/branches/core7/src/modules/dodgerace
- Timestamp:
- Sep 9, 2015, 1:49:55 PM (9 years ago)
- Location:
- code/branches/core7/src/modules/dodgerace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/modules/dodgerace/DodgeRace.cc
r10557 r10574 44 44 { 45 45 RegisterObject(DodgeRace); 46 init(); 47 this->numberOfBots_ = 0; //sets number of default bots temporarly to 0 48 this->center_ = 0; 49 50 this->setHUDTemplate("DodgeRaceHUD"); 51 } 52 53 void DodgeRace::init() 54 { 46 55 47 bEndGame = false; 56 48 lives = 1; … … 66 58 //enemySpawnTimer.setTimer(3.5f, true, createExecutor(createFunctor(&DodgeRace::spawnEnemy, this))); 67 59 comboTimer.setTimer(3.0f, true, createExecutor(createFunctor(&DodgeRace::comboControll, this))); 60 this->numberOfBots_ = 0; //sets number of default bots temporarly to 0 61 this->center_ = 0; 62 63 this->setHUDTemplate("DodgeRaceHUD"); 68 64 } 69 65 … … 167 163 { 168 164 orxout() << "start" << endl; 169 init();170 165 for(unsigned int i=0; i< cubeList.size();i++) 171 166 { … … 198 193 /* 199 194 orxout() << "prespawn" << endl; 200 init();201 195 for(int i=0; i< cubeList.size();i++) 202 196 { -
code/branches/core7/src/modules/dodgerace/DodgeRace.h
r10557 r10574 68 68 public: 69 69 DodgeRace(Context* context); 70 71 void init();72 70 73 71 virtual void start();
Note: See TracChangeset
for help on using the changeset viewer.