Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7032 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Feb 4, 2006, 5:01:11 AM (19 years ago)
Author:
bensch
Message:

testing

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/campaign.cc

    r6875 r7032  
    110110{
    111111  PRINTF(4)("Stopping the current Campaign\n");
    112   if( State::getMenuMode())
     112  if( State::getMenuID() != -1)
    113113    this->bReturnToMenu = true;
    114114  else
  • trunk/src/story_entities/simple_game_menu.cc

    r7031 r7032  
    6565  this->loadParams(root);
    6666
    67   State::setMenuMode(true);
     67  State::setMenuID(this->getNextStoryID());
    6868}
    6969
  • trunk/src/util/state.cc

    r7014 r7032  
    4949bool State::bOnline = false;
    5050
    51 bool State::bMenuMode = false;
     51int State::menuID = -1;
    5252
    5353
  • trunk/src/util/state.h

    r7014 r7032  
    9090  ////////////
    9191  /** sets the menu mode @param mode true if always exit to menu */
    92   static inline void setMenuMode(bool mode) { State::bMenuMode = mode; }
     92  static inline void setMenuID(int menuID) { State::menuID = menuID; }
    9393  /** @returns the menu mode */
    94   static inline bool getMenuMode() { return State::bMenuMode;}
     94  static inline int getMenuID() { return State::menuID;}
    9595
    9696
     
    111111  static unsigned int           resX;              //!< The X Resolution of the screen.
    112112  static unsigned int           resY;              //!< The Y Resolution of the screen.
    113 
     113  static int                    menuID;            //!< -1 on default, otherwise orxonox's Menu ID
    114114  static bool                   bOnline;           //!< Is true if this node is in multiplayer mode (via network)
    115   static bool                   bMenuMode;         //!< True is orxonox is player in the menu mode (always returning to the menu after exit)
    116 
    117115  };
    118116
Note: See TracChangeset for help on using the changeset viewer.