00001 /* 00002 * $Id: Protocol.h,v 1.3 2002/07/15 06:54:04 virtualcasino Exp $ 00003 */ 00004 #ifndef __PROTOCOL_H__ 00005 #define __PROTOCOL_H__ 00006 #include<clawsoft.h> 00007 #include<Client.h> 00008 #include<Platforms.h> 00009 using namespace clawsoft; 00010 00011 enum Commands{ 00012 GETPLATFORM = 0xcf1a, 00013 AUTHENTICATE = 0xcf1b, 00014 }; 00015 00016 class Protocol:public Object{ 00017 protected: 00018 Client client; 00019 Platform OS; 00020 public: 00021 Protocol(Client &c); 00022 bool authenticateClient(); 00023 bool authenticateUser(); 00024 bool attend(); 00025 bool readLibrary(); 00026 bool startGame(); 00027 bool endGame(); 00028 bool queryRules(); 00029 bool downloadGame(); 00030 bool uploadGame(); 00031 bool handShake(); 00032 Platform getPlatform(); 00033 }; 00034 00035 #endif
Powered by: