Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 21, 2016, 4:05:15 PM (9 years ago)
Author:
binderm
Message:

Campaignmenu improved, it's now possible to only show single levels and not all together.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/bindermFS16/src/orxonox/LevelManager.cc

    r11071 r11173  
    4949namespace orxonox
    5050{
     51
     52    LevelStatus::LevelStatus()
     53    {
     54        this->won = true;
     55    }
     56
     57    LevelStatus::~LevelStatus()
     58    {}
     59
     60    bool LevelManager::missionactivate(int index)
     61    {
     62        //check for index level activate...
     63        return index-5;
     64    }
     65
     66    void LevelManager::setLevelStatus(int completedLevel)
     67    {
     68//        allLevelStatus_[completedLevel]=new LevelStatus;
     69    }
     70
     71
    5172    SetCommandLineArgument(level, "").shortcut("l").information("Default level file (overrides LevelManager::defaultLevelName_ configValue)");
    5273
     
    6384        RegisterObject(LevelManager);
    6485        this->setConfigValues();
     86
     87
    6588
    6689        // check override
     
    7396        this->nextIndex_ = 0;
    7497        this->nextLevel_ = this->availableLevels_.begin();
    75     }
     98
     99        allLevelStatus_.reserve(1);
     100    }
     101
    76102
    77103    LevelManager::~LevelManager()
     
    103129        ModifyConfigValue(lastFinishedCampaignMission_, set, lastFinishedCampaignMission);
    104130    }
     131
     132
    105133
    106134    /**
Note: See TracChangeset for help on using the changeset viewer.