Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:
//” ©«: Client.h
//Љ« бб "Љ«ЁҐв". Џа®в®вЁЇ.
//Ђўв®а: ‘ҐаЈҐҐў Њ.‚. Ја.3352
//„ в : 21.05.06, ђҐ¤ ЄжЁп: 1.0
#include "Message.h"
#include "Server.h"
#include "Actress.cpp"
#ifndef ClientH
#define ClientH
class CServer;
class CClient
{
private:
static int nextID;
const int id;
static int count;
public:
CClient(); //constructor
virtual ~CClient(); //destructor
virtual int regOnSrv(CServer*s);//regiter on server
virtual int readMsg(CMsg*m); //read message
virtual int readMsgRet(CMsg*m);
virtual int sendMsg(int com,CServer*s,int toID); //send msg to client #toID
virtual int sendMsgAll(int com,CServer*s); //send msg to all client througth server
void show()const; //info
void showCInfo()const;
int getID()const; //getters
};
int CClient::nextID = 1;
int CClient::count = 0;
#endif
Соседние файлы в папке Kurs