ComSay.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:6k
- //TellTalkShout
- #include "stdafx.h"
- #include "XMudClient.h"
- #include "CommandCheck.h"
- #include "MenuCreateNew.h"
- #include "CommandCheck.h"
- #include "MainScreen.h"
- extern rmfullglobals myglobs;
- extern int g_nGameState;
- extern SOCKET hLCltForRSvrSock;
- extern CList<CPlayerInfo*,CPlayerInfo*>playerlist;
- extern CMainScreen m_MainScreen;
- extern CStringList g_strlistChannel;
- extern CStringList g_strlistPlayerOnline;
- extern CStringList g_strlistOnline;
- extern CList<CEquipInfo*,CEquipInfo*>equiprentlist;
- extern CStringList g_equiprentlist;
- void ComTellProc(CString szWho,CString szTell)
- {
- szTell = CString(SZTELLSOMEONE) + (" ") + szWho + (" ") + szTell;
- Send(hLCltForRSvrSock,szTell);
- }
- void ComSep()
- {
- CPlayerInfo * lpPlayerInfo;
- lpPlayerInfo = playerlist.GetHead();
- CString szSendMsg;
- szSendMsg = SZSEP;
- if( lpPlayerInfo->m_iEFFJING > 0 ) {
- Send(hLCltForRSvrSock,szSendMsg);
- myglobs.g_bShowMessage = TRUE;
- }
- }
- void ComShoutProc(CString szShout)
- {
- CPlayerInfo * lpPlayerInfo;
- lpPlayerInfo = playerlist.GetHead();
- CString parm = CString(" ");
- if(lpPlayerInfo->m_iEFFJING < 60){
- szShout = CString(szNewColor) + "(200,10,0)";
- szShout += parm;
- szShout += CString("