Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 28, 2010, 1:51:04 AM (14 years ago)
Author:
landauf
Message:

replaced the temporary names of all ConsoleCommand related classes and functions by their real names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/orxonox/gamestates/GSRoot.cc

    r7233 r7236  
    4545    static const std::string __CC_pause_name = "pause";
    4646
    47     _SetConsoleCommand("printObjects", &GSRoot::printObjects).hide();
    48     _SetConsoleCommand(__CC_setTimeFactor_name, &GSRoot::setTimeFactor).accessLevel(AccessLevel::Master).defaultValues(1.0);
    49     _SetConsoleCommand(__CC_pause_name,         &GSRoot::pause        ).accessLevel(AccessLevel::Master);
     47    SetConsoleCommand("printObjects", &GSRoot::printObjects).hide();
     48    SetConsoleCommand(__CC_setTimeFactor_name, &GSRoot::setTimeFactor).accessLevel(AccessLevel::Master).defaultValues(1.0);
     49    SetConsoleCommand(__CC_pause_name,         &GSRoot::pause        ).accessLevel(AccessLevel::Master);
    5050
    5151    registerStaticNetworkFunction(&TimeFactorListener::setTimeFactor);
     
    8282        TimeFactorListener::setTimeFactor(1.0f);
    8383
    84         _ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(this);
    85         _ModifyConsoleCommand(__CC_pause_name).setObject(this);
     84        ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(this);
     85        ModifyConsoleCommand(__CC_pause_name).setObject(this);
    8686    }
    8787
    8888    void GSRoot::deactivate()
    8989    {
    90         _ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(0);
    91         _ModifyConsoleCommand(__CC_pause_name).setObject(0);
     90        ModifyConsoleCommand(__CC_setTimeFactor_name).setObject(0);
     91        ModifyConsoleCommand(__CC_pause_name).setObject(0);
    9292    }
    9393
Note: See TracChangeset for help on using the changeset viewer.