Changeset 6874 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jan 30, 2006, 11:03:30 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/state.cc
r6695 r6874 43 43 bool State::bOnline = false; 44 44 45 bool State::bMenuMode = false; 46 47 45 48 /** 46 49 * sets camera and target of the current Camera -
trunk/src/util/state.h
r6695 r6874 82 82 83 83 84 //////////// 85 /// Menu /// 86 //////////// 87 /** sets the menu mode @param mode true if always exit to menu */ 88 static inline void setMenuMode(bool mode) { State::bMenuMode = mode; } 89 /** @returns the menu mode */ 90 static inline bool getMenuMode() { return State::bMenuMode;} 91 92 93 84 94 private: 85 95 State(); … … 97 107 98 108 static bool bOnline; //!< Is true if this node is in multiplayer mode (via network) 109 static bool bMenuMode; //!< True is orxonox is player in the menu mode (always returning to the menu after exit) 99 110 100 111 };
Note: See TracChangeset
for help on using the changeset viewer.