Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6874 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jan 30, 2006, 11:03:30 PM (18 years ago)
Author:
patrick
Message:

trunk: the menu control better implemented

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/state.cc

    r6695 r6874  
    4343bool State::bOnline = false;
    4444
     45bool State::bMenuMode = false;
     46
     47
    4548/**
    4649 *  sets camera and target of the current Camera
  • trunk/src/util/state.h

    r6695 r6874  
    8282
    8383
     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
    8494 private:
    8595  State();
     
    97107
    98108  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)
    99110
    100111  };
Note: See TracChangeset for help on using the changeset viewer.