Changeset 10574
- Timestamp:
- Sep 9, 2015, 1:49:55 PM (9 years ago)
- Location:
- code/branches/core7/src/modules
- Files:
-
- 6 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(); -
code/branches/core7/src/modules/invader/Invader.cc
r10557 r10574 62 62 this->numberOfBots_ = 0; //sets number of default bots temporarly to 0 63 63 this->center_ = 0; 64 init();65 this->setHUDTemplate("InvaderHUD");66 }67 68 void Invader::init()69 {70 64 bEndGame = false; 71 65 lives = 3; … … 78 72 enemySpawnTimer.setTimer(3.5f, true, createExecutor(createFunctor(&Invader::spawnEnemy, this))); 79 73 comboTimer.setTimer(3.0f, true, createExecutor(createFunctor(&Invader::comboControll, this))); 74 this->setHUDTemplate("InvaderHUD"); 80 75 } 81 76 … … 155 150 void Invader::start() 156 151 { 157 init();158 152 // Set variable to temporarily force the player to spawn. 159 153 this->bForceSpawn_ = true; -
code/branches/core7/src/modules/invader/Invader.h
r10557 r10574 71 71 // checks if multiplier should be reset. 72 72 void comboControll(); 73 void init();74 73 int lives; 75 74 int multiplier; -
code/branches/core7/src/modules/objects/Planet.cc
r9675 r10574 85 85 86 86 SUPER(Planet, tick, dt); 87 }88 89 void Planet::init()90 {91 87 } 92 88 -
code/branches/core7/src/modules/objects/Planet.h
r9667 r10574 52 52 virtual ~Planet(); 53 53 54 void init();55 54 virtual void tick(float dt); 56 55
Note: See TracChangeset
for help on using the changeset viewer.