commandcheck.h
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:5k
- // CommandCheck.h: interface for the CCommandCheck class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_COMMANDCHECK_H__96579656_8540_11D3_BA84_0000E8A021D8__INCLUDED_)
- #define AFX_COMMANDCHECK_H__96579656_8540_11D3_BA84_0000E8A021D8__INCLUDED_
- #include "CmdPlayerLogon.h"
- #include "GoodsGoodsGoods.h"
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- typedef struct _TChatChannel
- {
- CString m_sTITLE;
- CPlayerInfo *lpPlayerInfo;
- //BOOL bMaster;
- /*
- CString m_sCNAME;
- CString m_sENAME;
- CString m_sSEX;
- CString m_sNICKNAME;
- CString m_sFAMILY;
- CString m_iIPAddr;
- SOCKET hPlayerSocket;
- */
- }TChatChannel,*PChatChannel;
- class CCommandCheck
- {
- public:
- // Spock start
- BOOL CheckGM(char* UserName);
- // Spock end
- void UserLogonCmdProc(char *UserName,sockaddr_in IPAddr,char *stName,char *stPasswd,char *Result);
- void ProcessPlayerCommand(SOCKET hPlayerSocket, CStringList *Command, char *Result,
- sockaddr_in IPAddr, char *UserName, char *PlayerName, LPVOID &pvPlayer,
- PCLientConData lpConData);
- void ChangeMapProc(char* PlayerName,char* sMapName,char* Result,LPVOID pvPlayer,sockaddr_in IPAddr);
- void SendMapDataProc(char* PlayerName,char* sMapName,char* Result,
- LPVOID pvPlayer,sockaddr_in IPAddr);
- //繵笵㎝册ぱ
- CString JoinChannelCmdProc(char * szWhichTitle);
- void CreateOrJoinChannel(SOCKET hPlayerSocket,char* PlayerName,char* Title, char *Result,LPVOID pvPlayer);
- // void GetChannelCmdProc(SOCKET hPlayerSocket);
- void GetChannelCmdProc(CPlayerInfo *lpPlayerInfo);
- void ChannelTalkProc(char *szWhichTitle,char *szTalkSome);
- // void TellToSomeOne(SOCKET hPlayerSocket,char *playerName,char *szWhichOne,char *szTalkSome);
- void GmRunSomeOne(CPlayerInfo *me,char *playerName,char *szWhichOne,char *szTalkSome);
- void TellToSomeOne(CPlayerInfo *me,char *playerName,char *szWhichOne,char *szTalkSome);
- void EmoteProc(LPVOID pvPlayer,char *playerName,char *szWhichTitle,char * szEmote,char *szWho);
- void DefendTellProc(CPlayerInfo *me,char *playerName,char *szWhichOne);
- void DefendDelProc(CPlayerInfo *me,char *playerName,char *szWhichOne);
- void GetOutProc(CPlayerInfo *me,char *playerName,char *szWhichOne);
-
- // Spock start
- void ExitChannelProc(CPlayerInfo *lpPlayerInfo,char *Result);
- BOOL ShoutProc(CPlayerInfo *lpPlayerInfo, CString szShout, BOOL bGM);
- BOOL GmShoutProc(CPlayerInfo *lpPlayerInfo, CString szShout, BOOL bGM);
- // Spock end
- //笆