Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5388 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Oct 16, 2005, 2:05:26 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: implemented a t-Stack, for dynamic stacks, and integrated it into the Shell.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r5383 r5388  
    125125  if (this->bActive == true)
    126126    PRINTF(3)("The shell is already active\n");
     127
     128  printf("ACT\n");
    127129  this->bActive = true;
    128130
    129   EventHandler::getInstance()->setState(ES_SHELL);
     131  EventHandler::getInstance()->pushState(ES_SHELL);
    130132  this->setRelCoorSoft2D(0, 0, 1, 5);
    131133
     
    149151  this->bActive = false;
    150152
    151   EventHandler::getInstance()->setState(ES_GAME);
     153  EventHandler::getInstance()->popState();
     154
    152155  this->setRelCoorSoft2D(0, -(int)this->shellHeight, 1, 5);
    153156
     
    445448    if (event.type == SDLK_BACKQUOTE)
    446449    {
    447       if (EventHandler::getInstance()->getState() == ES_GAME)
     450      if (this->bActive == false)
    448451        this->activate();
    449452      else
Note: See TracChangeset for help on using the changeset viewer.