From e92b9e7ecbdf2918aab59d4eeb7bb5966430b264 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 24 Aug 2012 07:58:26 +0000 Subject: Monster classes don't use cPackets. Chat messages are sent / broadcast without cPackets. BlockEntities don't use cPackets. git-svn-id: http://mc-server.googlecode.com/svn/trunk@783 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cServer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/cServer.h') diff --git a/source/cServer.h b/source/cServer.h index 52094e2f7..e80d0927e 100644 --- a/source/cServer.h +++ b/source/cServer.h @@ -39,6 +39,7 @@ public: //tolua_export void StartListenClient(); // Listen to client void Broadcast(const cPacket & a_Packet, cClientHandle* a_Exclude = NULL); + void BroadcastChat(const AString & a_Message, const cClientHandle * a_Exclude = NULL); bool Tick(float a_Dt); @@ -48,7 +49,7 @@ public: //tolua_export void ServerCommand(const AString & a_Cmd); //tolua_export void Shutdown(); - void SendMessage( const char* a_Message, cPlayer* a_Player = 0, bool a_bExclude = false ); //tolua_export + void SendMessage(const AString & a_Message, cPlayer * a_Player = NULL, bool a_bExclude = false ); // tolua_export void KickUser(int a_ClientID, const AString & a_Reason); void AuthenticateUser(int a_ClientID); // Called by cAuthenticator to auth the specified user -- cgit v1.2.3