gameserver.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00029 #ifndef GAMESERVER_H
00030 #define GAMESERVER_H
00031 #include "../plugin.h"
00032 #include "../botkernel.h"
00033 #include <iostream>
00034 #include <map>
00035 using namespace std;
00036
00038 const int MAX_CHARS=1000;
00039
00044 class GameServer : public Plugin
00045 {
00046 private:
00047 public:
00049 GameServer(BotKernel*);
00051 long strToLong(string);
00053 string getHLstring(unsigned int * ,char*);
00055 char getHLbyte(unsigned int*,char*);
00057 string getHLlong(unsigned int*,char*);
00059 bool getHL1Players(vector<string>*,char*);
00061 bool getHL1Challenge(string*,char*);
00063 bool getHL1Infos(map<string,string>* ,char*);
00065 string getQ3GameType(string);
00067 bool parseWSWinfos(map<string,string>*,vector<string>*,char*);
00069 bool parseQ3infos(map<string,string>*,vector<string>*,char*);
00071 bool sendQuery(string,string,int*,string) ;
00073 string getResult(int,char*) ;
00074 };
00075
00076
00077 #endif
00078