home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example4 / Network.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  1.0 KB  |  44 lines

  1. /* START_LICENSE_HEADER
  2.  
  3. Copyright (C) 2000 Martin Piper, original design and program code
  4. Copyright (C) 2001-2005 Replica Software
  5.  
  6. This program file is copyright (C) Replica Software and can only be used under license.
  7. For more information visit: http://www.replicanet.com/
  8. Or email: info@replicanet.com
  9.  
  10. END_LICENSE_HEADER */
  11. /*
  12. See Network.cpp
  13. */
  14. #ifndef __NETWORK_H__
  15. #define __NETWORK_H__
  16.  
  17. #include <string>
  18. #include "RNReplicaNet/Inc/ReplicaNet.h"
  19. #include "MyReplicaNet.h"
  20.  
  21. /**
  22.  * Handles the network dialog and allocation of the ReplicaNet session
  23.  */
  24. class Network
  25. {
  26. private:
  27.     Network();        // Not intended for allocation
  28.  
  29. public:
  30.     static void Network_Init(std::string url);
  31.     static void Network_Shutdown(void);
  32.     static void Network_Dialog(void);
  33.     static void HandleRecording(void);
  34.  
  35.     static MyReplicaNet *mNetwork;
  36.     static bool mDedicatedServer;
  37.     static bool mRenderModels;
  38.     static bool mDoRecord;
  39.     static bool mDoPlayback;
  40.     static std::string mRecordingFileName;
  41. };
  42.  
  43. #endif
  44.