Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 25, 2006, 2:39:53 PM (19 years ago)
Author:
patrick
Message:

merged the network branche to the trunk

Location:
trunk/src/util
Files:
2 edited

Legend:

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

    r6498 r6695  
    4141Player* State::player = NULL;
    4242
     43bool State::bOnline = false;
    4344
    4445/**
  • trunk/src/util/state.h

    r6498 r6695  
    7373
    7474
     75  ///////////////
     76  /// NETWORK ///
     77  ///////////////
     78  /** sets the online stat (multiplayer network) @param bOnline is true if node is online */
     79  static inline void setOnline(bool bOnline) { State::bOnline = bOnline; }
     80  /** @returns true if this node is online (multiplayer network game) */
     81  static bool isOnline() { return State::bOnline; }
     82
    7583
    7684 private:
     
    8795  static unsigned int           resX;              //!< The X Resolution of the screen.
    8896  static unsigned int           resY;              //!< The Y Resolution of the screen.
     97
     98  static bool                   bOnline;           //!< Is true if this node is in multiplayer mode (via network)
     99
    89100  };
    90101
Note: See TracChangeset for help on using the changeset viewer.