Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 17, 2008, 7:27:36 PM (16 years ago)
Author:
rgrieder
Message:

GameState class added. Tested and working, but now comes the hard part: Implementing the actual states…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/Main.cc

    r1638 r1660  
    110110}
    111111
     112#include "core/GameState.h"
     113
    112114#ifdef __cplusplus
    113115extern "C" {
     
    125127        return 0;
    126128    }
     129
     130
     131    /*GameState* state1 = new GameState("state1");
     132    GameState* state2 = new GameState("state2");
     133    GameState* state3 = new GameState("state3");
     134    GameState* state4 = new GameState("state4");
     135    GameState* state5 = new GameState("state5");
     136    GameState* state6 = new GameState("state6");
     137
     138    state1->addChild(state4);
     139    state1->addChild(state6);
     140    state2->addChild(state3);
     141    state2->addChild(state5);
     142    state3->addChild(state1);
     143    state6->addChild(state2);
     144
     145    state5->requestState("state3");
     146    COUT(2) << std::endl;
     147    state2->requestState("state2");
     148    COUT(2) << std::endl;
     149    state2->requestState("state1");
     150    COUT(2) << std::endl;
     151    state4->requestState("state3");
     152    COUT(2) << std::endl;
     153    state1->requestState("state4");
     154    COUT(2) << std::endl;
     155    state1->requestState("state2");
     156    COUT(2) << std::endl;
     157    state1->requestState("stat");
     158    COUT(2) << std::endl;
     159    state1->requestState("state5");
     160    COUT(2) << std::endl;*/
     161
     162
    127163
    128164    Orxonox orxonoxInstance;
Note: See TracChangeset for help on using the changeset viewer.