Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2009, 4:01:35 PM (15 years ago)
Author:
rgrieder
Message:

StartLevel —> DefaultLevel and moved the CommandLine argument (—level) to the LevelManager.

File:
1 edited

Legend:

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

    r3245 r3249  
    4040namespace orxonox
    4141{
     42    SetCommandLineArgument(level, "").shortcut("l");
     43
    4244    LevelManager* LevelManager::singletonRef_s = 0;
    4345
     
    5355        if (!CommandLine::getArgument("level")->hasDefaultValue())
    5456        {
    55             ModifyConfigValue(startLevelName_, tset, CommandLine::getValue("mediaPath").getString());
     57            ModifyConfigValue(defaultLevelName_, tset, CommandLine::getValue("mediaPath").getString());
    5658        }
    5759    }
     
    6567    void LevelManager::setConfigValues()
    6668    {
    67         SetConfigValue(startLevelName_, "presentation_dm.oxw")
     69        SetConfigValue(defaultLevelName_, "presentation_dm.oxw")
    6870            .description("Sets the preselection of the level in the main menu.");
    6971    }
     
    113115    }
    114116
    115     void LevelManager::setStartLevel(const std::string& levelName)
     117    void LevelManager::setDefaultLevel(const std::string& levelName)
    116118    {
    117         ModifyConfigValue(startLevelName_, set, levelName);
     119        ModifyConfigValue(defaultLevelName_, set, levelName);
    118120    }
    119121
    120     const std::string& LevelManager::getStartLevel()
     122    const std::string& LevelManager::getDefaultLevel()
    121123    {
    122         return startLevelName_;
     124        return defaultLevelName_;
    123125    }
    124126}
Note: See TracChangeset for help on using the changeset viewer.