commandcheck.h
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:5k
源码类别:

游戏引擎

开发平台:

Visual C++

  1. // CommandCheck.h: interface for the CCommandCheck class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_COMMANDCHECK_H__96579656_8540_11D3_BA84_0000E8A021D8__INCLUDED_)
  5. #define AFX_COMMANDCHECK_H__96579656_8540_11D3_BA84_0000E8A021D8__INCLUDED_
  6. #include "CmdPlayerLogon.h"
  7. #include "GoodsGoodsGoods.h"
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11. typedef struct _TChatChannel
  12. {
  13. CString m_sTITLE;
  14. CPlayerInfo *lpPlayerInfo;
  15. //BOOL bMaster;
  16. /*
  17. CString m_sCNAME;
  18. CString m_sENAME;
  19. CString m_sSEX;
  20. CString m_sNICKNAME;
  21. CString m_sFAMILY;
  22. CString m_iIPAddr;
  23. SOCKET hPlayerSocket;
  24. */
  25. }TChatChannel,*PChatChannel;
  26. class CCommandCheck
  27. {
  28. public:
  29. // Spock start
  30. BOOL CheckGM(char* UserName);
  31. // Spock end
  32. void UserLogonCmdProc(char *UserName,sockaddr_in IPAddr,char *stName,char *stPasswd,char *Result);
  33. void ProcessPlayerCommand(SOCKET hPlayerSocket, CStringList *Command, char *Result,
  34. sockaddr_in IPAddr, char *UserName, char *PlayerName, LPVOID &pvPlayer,
  35. PCLientConData lpConData);
  36. void ChangeMapProc(char* PlayerName,char* sMapName,char* Result,LPVOID pvPlayer,sockaddr_in IPAddr);
  37. void SendMapDataProc(char* PlayerName,char* sMapName,char* Result,
  38. LPVOID pvPlayer,sockaddr_in IPAddr);
  39. //繵笵㎝册ぱ
  40. CString JoinChannelCmdProc(char * szWhichTitle);
  41. void CreateOrJoinChannel(SOCKET hPlayerSocket,char* PlayerName,char* Title, char *Result,LPVOID pvPlayer);
  42. // void GetChannelCmdProc(SOCKET hPlayerSocket);
  43. void GetChannelCmdProc(CPlayerInfo *lpPlayerInfo);
  44. void ChannelTalkProc(char *szWhichTitle,char *szTalkSome);
  45. // void TellToSomeOne(SOCKET hPlayerSocket,char *playerName,char *szWhichOne,char *szTalkSome);
  46. void GmRunSomeOne(CPlayerInfo *me,char *playerName,char *szWhichOne,char *szTalkSome);
  47. void TellToSomeOne(CPlayerInfo *me,char *playerName,char *szWhichOne,char *szTalkSome);
  48. void EmoteProc(LPVOID pvPlayer,char *playerName,char *szWhichTitle,char * szEmote,char *szWho);
  49. void DefendTellProc(CPlayerInfo *me,char *playerName,char *szWhichOne);
  50. void DefendDelProc(CPlayerInfo *me,char *playerName,char *szWhichOne);
  51. void GetOutProc(CPlayerInfo *me,char *playerName,char *szWhichOne);
  52.  
  53. // Spock start
  54. void ExitChannelProc(CPlayerInfo *lpPlayerInfo,char *Result);
  55. BOOL ShoutProc(CPlayerInfo *lpPlayerInfo, CString szShout, BOOL bGM);
  56. BOOL GmShoutProc(CPlayerInfo *lpPlayerInfo, CString szShout, BOOL bGM);
  57. // Spock end
  58. //笆