/* ==================================================================== * ÆÄ ÀÏ : ChatCommands.h * ¸ñ Àû : äÆÃâ¿¡ »ç¿ëÇÒ Ã¤ÆÃ ¸í·É¾î¸¦ ó¸®ÇÑ´Ù. * ÀÛ ¼º ÀÚ : À̹ý¼® * ÀÛ ¼º ÀÏ : 2006.12 * ÁÖÀÇ»çÇ× : * =================================================================== */ #pragma once class cChatCommands { public: cChatCommands(); ~cChatCommands(); bool MessageParser( LPCTSTR message ); bool MessageParserByType( unsigned char type, LPCTSTR message ); /// °¨Á¤Ç¥Çö °ü·Ãµ¥ÀÌÅÍ »ðÀÔ bool AddCommunityData( LPCTSTR key, unsigned long index ); protected: /// °ø¹é ¹®ÀÚ¿­À̰ųª ½ºÆäÀ̽º ÀԷ¸¸ µÇ¾îÀÕ´ÂÁö °Ë»ç bool CheckChatMsg( LPCTSTR chatmsg, unsigned int len ); /// ÀÏ¹Ý ¸Þ½ÃÁö º¸³»±â void SendNormalMsg( LPCTSTR chatmsg ); /// ±Ó¸» º¸³»±â void SendWhisperMsg( LPCTSTR toname, LPCTSTR chatmsg ); /// ¿ÜÄ¡±â void SendShoutMsg( LPCTSTR chatmsg ); /// ÆÄƼ ¸Þ½ÃÁö º¸³»±â void SendPartyMsg( LPCTSTR chatmsg ); /// °Å·¡ ¸Þ½ÃÁö º¸³»±â void SendTradeMsg( LPCTSTR chatmsg ); /// ±æµå ¸Þ½ÃÁö º¸³»±â void SendGuildMsg( LPCTSTR chatmsg ); /// GM äÆÃ ¸Þ½ÃÁö º¸³»±â void SendGMNormalMsg( LPCTSTR chatmsg ); /// Àüü¿ÜÄ¡±â º¸³»±â bool SendMegaphoneMsg( LPCTSTR chatmsg ); private: /// °¨Á¤ Ä¿¸Çµå °ü·Ã ¸Ê typedef tHashMap cCommunityCommandMap; cCommunityCommandMap mCommunityCommandMap; };