Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2015, 1:49:55 PM (9 years ago)
Author:
landauf
Message:

removed some init() functions, integrated them directly into the constructor (and it's not necessary to call init() again when a gametype starts)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/modules/dodgerace/DodgeRace.cc

    r10557 r10574  
    4444    {
    4545        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
    5547        bEndGame = false;
    5648        lives = 1;
     
    6658        //enemySpawnTimer.setTimer(3.5f, true, createExecutor(createFunctor(&DodgeRace::spawnEnemy, this)));
    6759        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");
    6864    }
    6965
     
    167163    {
    168164        orxout() << "start" << endl;
    169         init();
    170165        for(unsigned int i=0; i< cubeList.size();i++)
    171166        {
     
    198193        /*
    199194        orxout() << "prespawn" << endl;
    200         init();
    201195        for(int i=0; i< cubeList.size();i++)
    202196        {
Note: See TracChangeset for help on using the changeset viewer.