Exemplo n.º 1
0
void CClient::SysMessage(LPCTSTR pszMsg) const	// system message (in lower left corner)
{
	ADDTOCALLSTACK("CClient::SysMessage");
	// Diff sorts of clients.
	if ( !pszMsg || !*pszMsg )
		return;

	switch ( GetConnectType() )
	{
		case CONNECT_CRYPT:
		case CONNECT_LOGIN:
		case CONNECT_GAME:
		{
			const_cast<CClient *>(this)->addSysMessage(pszMsg);
			return;
		}
		case CONNECT_HTTP:
		{
			const_cast<CClient *>(this)->m_Targ_Text = pszMsg;
			return;
		}
		case CONNECT_TELNET:
		case CONNECT_AXIS:
		{
			if ( ISINTRESOURCE(pszMsg) || (*pszMsg == '\0') )
				return;
			new PacketTelnet(this, pszMsg);
			return;
		}
		case CONNECT_UOG:
		{
			if ( ISINTRESOURCE(pszMsg) || (*pszMsg == '\0') )
				return;
			new PacketTelnet(this, pszMsg, true);
			return;
		}
	}
}
Exemplo n.º 2
0
	virtual void SysMessage( LPCTSTR pszMessage ) const
	{
		if ( pszMessage == NULL || ISINTRESOURCE(pszMessage))
			return;
		(const_cast <CFileConsole*>(this))->m_FileOut.WriteString(pszMessage);
	}