Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 26, 2008, 4:26:04 PM (16 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/Main.cc

    r1664 r1670  
    4444#include "gamestates/GSRoot.h"
    4545#include "gamestates/GSGraphics.h"
    46 #include "gamestates/GSLevel.h"
     46#include "gamestates/GSStandalone.h"
     47#include "gamestates/GSServer.h"
     48#include "gamestates/GSClient.h"
    4749#include "gamestates/GSGUI.h"
     50#include "gamestates/GSIO.h"
     51#include "gamestates/GSIOConsole.h"
    4852
    4953using namespace orxonox;
     
    7781
    7882
    79 #ifdef __cplusplus
    80 extern "C" {
    81 #endif
     83//#ifdef __cplusplus
     84//extern "C" {
     85//#endif
    8286
    8387int main(int argc, char** argv)
     
    122126    GSRoot root;
    123127    GSGraphics graphics;
    124     GSLevel level;
     128    GSStandalone standalone;
     129    GSServer server;
     130    GSClient client;
    125131    GSGUI gui;
     132    GSIO io;
     133    GSIOConsole ioConsole;
    126134
    127135    root.addChild(&graphics);
    128     graphics.addChild(&level);
     136    graphics.addChild(&standalone);
     137    graphics.addChild(&server);
     138    graphics.addChild(&client);
    129139    graphics.addChild(&gui);
    130140
     141    root.addChild(&io);
     142    io.addChild(&ioConsole);
     143
    131144    root.feedCommandLine(argc, argv);
    132     root.requestState("root");
    133     root.tick(0.0f);
    134     root.requestState("");
     145    root.requestState("ioConsole");
     146    while (!root.isGameFinished())
     147        root.tick(0.0f);
    135148
    136149    return 0;
    137150}
    138151
    139 #ifdef __cplusplus
    140 }
    141 #endif
     152//#ifdef __cplusplus
     153//}
     154//#endif
Note: See TracChangeset for help on using the changeset viewer.