Changeset 7032 in orxonox.OLD for trunk/src/util
- Timestamp:
- Feb 4, 2006, 5:01:11 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.