Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 26, 2008, 4:26:04 PM (17 years ago)
Author:
rgrieder
Message:

Still working on the GameStates, but I have to save the work because of some major changes.

  • Exported InputManager- and TclThreadManager-tick to GSGraphics instead of Core
  • Fixed a few bugs in GameState by adding an internal state variable as bitfield (quite practical)
  • Fixed a bug in InputManager that occurred when destroying an active InputState
  • Added GSIO and GSIOConsole (3 lines of loop code with std::cin, but works ;))
  • Added more boost thread includes to OrxonoxStableHeaders.h
  • Many changes in all GameState derived classes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/CommandLine.h

    r1664 r1670  
    3838#define SetCommandLineArgument(name, defaultValue) \
    3939    BaseCommandLineArgument& CmdArgumentDummyBoolVar##name \
    40     = orxonox::CommandLine::addCommandLineArgument(#name, defaultValue)
     40    = orxonox::CommandLine::addArgument(#name, defaultValue)
    4141#define SetCommandLineSwitch(name) \
    4242    BaseCommandLineArgument& CmdArgumentDummyBoolVar##name \
    43     = orxonox::CommandLine::addCommandLineArgument(#name, false)
     43    = orxonox::CommandLine::addArgument(#name, false)
    4444
    4545
     
    8989    protected:
    9090        BaseCommandLineArgument(const std::string& name)
    91             : name_(name)
    92             , bHasDefaultValue_(true)
     91            : bHasDefaultValue_(true)
     92            , name_(name)
    9393        { }
    9494
     
    216216
    217217        template <class T>
    218         static const CommandLineArgument<T>* getCommandLineArgument(const std::string& name);
     218        static const CommandLineArgument<T>* getArgument(const std::string& name);
    219219        //! Writes the argument value in the given parameter.
    220220        template <class T>
    221         static void getCommandLineValue(const std::string& name, T* value)
    222         { *value = getCommandLineArgument<T>(name)->getValue(); }
    223         template <class T>
    224         static BaseCommandLineArgument& addCommandLineArgument(const std::string& name, T defaultValue);
     221        static void getValue(const std::string& name, T* value)
     222        { *value = getArgument<T>(name)->getValue(); }
     223        template <class T>
     224        static BaseCommandLineArgument& addArgument(const std::string& name, T defaultValue);
    225225
    226226    private:
     
    264264    */
    265265    template <class T>
    266     const CommandLineArgument<T>* CommandLine::getCommandLineArgument(const std::string& name)
     266    const CommandLineArgument<T>* CommandLine::getArgument(const std::string& name)
    267267    {
    268268        std::map<std::string, BaseCommandLineArgument*>::const_iterator it = _getInstance().cmdLineArgs_.find(name);
     
    302302    */
    303303    template <class T>
    304     BaseCommandLineArgument& CommandLine::addCommandLineArgument(const std::string& name, T defaultValue)
     304    BaseCommandLineArgument& CommandLine::addArgument(const std::string& name, T defaultValue)
    305305    {
    306306        std::map<std::string, BaseCommandLineArgument*>::const_iterator it = _getInstance().cmdLineArgs_.find(name);
Note: See TracChangeset for help on using the changeset viewer.