From d20b79683997990a1b46ac8d4117f9195aa278f2 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 2 Apr 2009 14:54:43 +0200 Subject: Some cleanup and renaming * Removed superfluous 'virtual' keyword in *Handler implementations * Renamed NPCHandler to NpcHandler * Renamed InvyHandler to InventoryHandler * Made all *Handler interface methods pure virtual * Used forward declarations in net.h * Renamed {start,end}Shoping to {start,end}Shopping --- src/net/net.h | 68 +++++++++++++++++++++++++---------------------------------- 1 file changed, 29 insertions(+), 39 deletions(-) (limited to 'src/net/net.h') diff --git a/src/net/net.h b/src/net/net.h index aa2c8a27..75ee3aed 100644 --- a/src/net/net.h +++ b/src/net/net.h @@ -22,46 +22,36 @@ #ifndef NET_H #define NET_H -#include "net/adminhandler.h" -#include "net/charhandler.h" -#include "net/chathandler.h" -#include "net/generalhandler.h" -#include "net/guildhandler.h" -#include "net/inventoryhandler.h" -#include "net/loginhandler.h" -#include "net/maphandler.h" -#include "net/npchandler.h" -#include "net/partyhandler.h" -#include "net/playerhandler.h" -#include "net/skillhandler.h" -#include "net/tradehandler.h" - namespace Net { -Net::AdminHandler *getAdminHandler(); - -Net::CharHandler *getCharHandler(); - -Net::ChatHandler *getChatHandler(); - -Net::GeneralHandler *getGeneralHandler(); - -Net::GuildHandler *getGuildHandler(); - -Net::InvyHandler *getInvyHandler(); - -Net::LoginHandler *getLoginHandler(); - -Net::MapHandler *getMapHandler(); - -Net::NpcHandler *getNpcHandler(); - -Net::PartyHandler *getPartyHandler(); - -Net::PlayerHandler *getPlayerHandler(); - -Net::SkillHandler *getSkillHandler(); -Net::TradeHandler *getTradeHandler(); -} +class AdminHandler; +class CharHandler; +class ChatHandler; +class GeneralHandler; +class GuildHandler; +class InventoryHandler; +class LoginHandler; +class MapHandler; +class NpcHandler; +class PartyHandler; +class PlayerHandler; +class SkillHandler; +class TradeHandler; + +AdminHandler *getAdminHandler(); +CharHandler *getCharHandler(); +ChatHandler *getChatHandler(); +GeneralHandler *getGeneralHandler(); +GuildHandler *getGuildHandler(); +InventoryHandler *getInventoryHandler(); +LoginHandler *getLoginHandler(); +MapHandler *getMapHandler(); +NpcHandler *getNpcHandler(); +PartyHandler *getPartyHandler(); +PlayerHandler *getPlayerHandler(); +SkillHandler *getSkillHandler(); +TradeHandler *getTradeHandler(); + +} // namespace Net #endif // NET_H -- cgit v1.2.3-70-g09d2