00001 /* 00002 * The Mana World 00003 * Copyright (C) 2009 The Mana World Development Team 00004 * 00005 * This file is part of The Mana World. 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 */ 00021 00022 #include "net/net.h" 00023 00024 #include "net/adminhandler.h" 00025 #include "net/charhandler.h" 00026 #include "net/chathandler.h" 00027 #include "net/generalhandler.h" 00028 #include "net/guildhandler.h" 00029 #include "net/inventoryhandler.h" 00030 #include "net/loginhandler.h" 00031 #include "net/logouthandler.h" 00032 #include "net/maphandler.h" 00033 #include "net/npchandler.h" 00034 #include "net/partyhandler.h" 00035 #include "net/playerhandler.h" 00036 #include "net/skillhandler.h" 00037 #include "net/tradehandler.h" 00038 00039 extern Net::AdminHandler *adminHandler; 00040 extern Net::CharHandler *charHandler; 00041 extern Net::ChatHandler *chatHandler; 00042 extern Net::GeneralHandler *generalHandler; 00043 extern Net::InventoryHandler *inventoryHandler; 00044 extern Net::LoginHandler *loginHandler; 00045 extern Net::LogoutHandler *logoutHandler; 00046 extern Net::MapHandler *mapHandler; 00047 extern Net::NpcHandler *npcHandler; 00048 extern Net::PartyHandler *partyHandler; 00049 extern Net::PlayerHandler *playerHandler; 00050 extern Net::SkillHandler *skillHandler; 00051 extern Net::TradeHandler *tradeHandler; 00052 00053 Net::AdminHandler *Net::getAdminHandler() 00054 { 00055 return adminHandler; 00056 } 00057 00058 Net::CharHandler *Net::getCharHandler() 00059 { 00060 return charHandler; 00061 } 00062 00063 Net::ChatHandler *Net::getChatHandler() 00064 { 00065 return chatHandler; 00066 } 00067 00068 Net::GeneralHandler *Net::getGeneralHandler() 00069 { 00070 return generalHandler; 00071 } 00072 00073 Net::GuildHandler *Net::getGuildHandler() 00074 { 00075 // TODO 00076 return 0; 00077 } 00078 00079 Net::InventoryHandler *Net::getInventoryHandler() 00080 { 00081 return inventoryHandler; 00082 } 00083 00084 Net::LoginHandler *Net::getLoginHandler() 00085 { 00086 return loginHandler; 00087 } 00088 00089 Net::LogoutHandler *Net::getLogoutHandler() 00090 { 00091 return logoutHandler; 00092 } 00093 00094 Net::MapHandler *Net::getMapHandler() 00095 { 00096 return mapHandler; 00097 } 00098 00099 Net::NpcHandler *Net::getNpcHandler() 00100 { 00101 return npcHandler; 00102 } 00103 00104 Net::PartyHandler *Net::getPartyHandler() 00105 { 00106 return partyHandler; 00107 } 00108 00109 Net::PlayerHandler *Net::getPlayerHandler() 00110 { 00111 return playerHandler; 00112 } 00113 00114 Net::SkillHandler *Net::getSkillHandler() 00115 { 00116 return skillHandler; 00117 } 00118 00119 Net::TradeHandler *Net::getTradeHandler() 00120 { 00121 return tradeHandler; 00122 }