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/orxonox/gamestates/GSRoot.cc

    r1664 r1670  
    5252        , settings_(0)
    5353        , graphicsEngine_(0)
     54        , bExit_(false)
    5455    {
    5556    }
     
    101102
    102103        std::string dataPath;
    103         CommandLine::getCommandLineValue("dataPath", &dataPath);
     104        CommandLine::getValue("dataPath", &dataPath);
    104105        if (dataPath != "")
    105106        {
     
    122123        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(functor, "loadGame"));
    123124
    124         requestState("gui");
     125        // add console commands
     126        functor = createFunctor(&GSRoot::exitGame);
     127        functor->setObject(this);
     128        CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(functor, "exit"));
    125129    }
    126130
     
    128132    {
    129133        delete graphicsEngine_;
     134        delete settings_;
    130135
    131         delete settings_;
     136        // TODO: remove and destroy console commands
    132137    }
    133138
    134     bool GSRoot::tick(float dt)
     139    void GSRoot::ticked(float dt)
    135140    {
    136         if (this->getActiveChild())
    137             this->getActiveChild()->tick(dt);
    138         return true;
     141        this->tickChild(dt);
    139142    }
    140143
Note: See TracChangeset for help on using the changeset viewer.