00001 /* 00002 $Id: netgroup.h,v 1.6 2001/03/04 17:54:52 mbn Exp $ 00003 00004 ------------------------------------------------------------------------ 00005 ClanLib, the platform independent game SDK. 00006 00007 This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE 00008 version 2. See COPYING for details. 00009 00010 For a total list of contributers see CREDITS. 00011 00012 ------------------------------------------------------------------------ 00013 */ 00014 00016 00017 #ifndef header_netgroup 00018 #define header_netgroup 00019 00020 #include <list> 00021 #include "netcomputer.h" 00022 00023 class CL_NetGroup 00024 //: Class used to group computers in a network game. 00025 { 00027 public: 00028 CL_NetGroup(); 00029 //: Construct an empty group list. 00030 00031 CL_NetGroup(const CL_NetComputer &computer); 00032 //: Construct a group with one computer in it. 00033 00034 virtual ~CL_NetGroup(); 00035 00037 public: 00038 std::list<CL_NetComputer> &get_computers() const; 00039 //: List of computers in this group. 00040 00042 public: 00043 void add(const CL_NetComputer &computer); 00044 //: Add computer to group. 00045 00046 void remove(const CL_NetComputer &computer); 00047 //: Remove computer from group. 00048 00049 void disconnect(); 00050 // Disconnects all computers in group. 00051 00053 private: 00054 class CL_NetGroup_Generic *impl; 00055 }; 00056 00057 #endif
1.2.6 written by Dimitri van Heesch,
© 1997-2001