Fimbulwinter Project  Pre-Alpha
An Ragnarok Online Emulator
ZoneServer/PacketHandling.hpp
00001 /*==================================================================*
00002 *     ___ _           _           _          _       _                          *
00003 *    / __(_)_ __ ___ | |__  _   _| |_      _(_)_ __ | |_ ___ _ __       *
00004 *   / _\ | | '_ ` _ \| '_ \| | | | \ \ /\ / / | '_ \| __/ _ \ '__|      *
00005 *  / /   | | | | | | | |_) | |_| | |\ V  V /| | | | | ||  __/ |         *
00006 *  \/    |_|_| |_| |_|_.__/ \__,_|_| \_/\_/ |_|_| |_|\__\___|_|         *
00007 *                                                                                                                                       *
00008 * ------------------------------------------------------------------*
00009 *                                                        Emulator                                       *
00010 * ------------------------------------------------------------------*
00011 *                     Licenced under GNU GPL v3                     *
00012 * ----------------------------------------------------------------- *
00013 *                        Client infos Modules                           *
00014 * ==================================================================*/
00015 
00016 #pragma once
00017 
00018 #include <show_message.hpp>
00019 #include <iostream>
00020 #include <cstdlib>
00021 #include "packets.hpp"
00022 #include "ZoneServer.hpp"
00023 
00028 typedef enum talkarea {
00029 
00030         COMMONTALK_AREA = 0,
00031         
00032 }TalkArea;
00033 
00038 typedef enum typechat {
00039 
00040         NORMAL_CHAT = 0,
00041         PARTY_CHAT,
00042         GUILD_CHAT,
00043         WHISPER_CHAT,
00044 
00045 }TypeChat;
00046 
00047 void packet_ticksend(tcp_connection::pointer cl, ZoneSessionData *sd);
00048 void packet_loadendack(tcp_connection::pointer cl, ZoneSessionData *sd);
00049 void packet_lesseffect(tcp_connection::pointer cl, ZoneSessionData *sd);
00050 void packet_wanttoconnect(tcp_connection::pointer cl, ZoneSessionData *sd);
00051 void packet_chatpackets(tcp_connection::pointer cl, struct ZoneSessionData* zd, TypeChat tc);
 All Classes Functions