- Timestamp:
- Feb 4, 2006, 5:01:11 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r6875 r7032 110 110 { 111 111 PRINTF(4)("Stopping the current Campaign\n"); 112 if( State::getMenu Mode())112 if( State::getMenuID() != -1) 113 113 this->bReturnToMenu = true; 114 114 else -
trunk/src/story_entities/simple_game_menu.cc
r7031 r7032 65 65 this->loadParams(root); 66 66 67 State::setMenu Mode(true);67 State::setMenuID(this->getNextStoryID()); 68 68 } 69 69 -
trunk/src/util/state.cc
r7014 r7032 49 49 bool State::bOnline = false; 50 50 51 bool State::bMenuMode = false;51 int State::menuID = -1; 52 52 53 53 -
trunk/src/util/state.h
r7014 r7032 90 90 //////////// 91 91 /** sets the menu mode @param mode true if always exit to menu */ 92 static inline void setMenu Mode(bool mode) { State::bMenuMode = mode; }92 static inline void setMenuID(int menuID) { State::menuID = menuID; } 93 93 /** @returns the menu mode */ 94 static inline bool getMenuMode() { return State::bMenuMode;}94 static inline int getMenuID() { return State::menuID;} 95 95 96 96 … … 111 111 static unsigned int resX; //!< The X Resolution of the screen. 112 112 static unsigned int resY; //!< The Y Resolution of the screen. 113 113 static int menuID; //!< -1 on default, otherwise orxonox's Menu ID 114 114 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 117 115 }; 118 116
Note: See TracChangeset
for help on using the changeset viewer.