summaryrefslogtreecommitdiff
path: root/src/net/net.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-12-02 14:35:42 -0700
committerJared Adams <jaxad0127@gmail.com>2009-12-02 14:35:42 -0700
commit91761b7926c2503664c4db24c5aa44f817384227 (patch)
treea6c1c5d31593048326f1026fa52997b3003df471 /src/net/net.cpp
parentd12c93d4d6fc38eb86b5cb8515f4b8f8a7e96b54 (diff)
downloadmana-91761b7926c2503664c4db24c5aa44f817384227.tar.gz
mana-91761b7926c2503664c4db24c5aa44f817384227.tar.bz2
mana-91761b7926c2503664c4db24c5aa44f817384227.tar.xz
mana-91761b7926c2503664c4db24c5aa44f817384227.zip
Centralize netcode handler instances in Net
Instead of each netcode making the global variables and Net referencing them, Net now makes them and the netcodes reference them. Also remove an innappropriate ChatHandler reference from eA's AdminHandler.
Diffstat (limited to 'src/net/net.cpp')
-rw-r--r--src/net/net.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/net/net.cpp b/src/net/net.cpp
index ddf09730..337e55a1 100644
--- a/src/net/net.cpp
+++ b/src/net/net.cpp
@@ -43,19 +43,19 @@
#include "net/ea/generalhandler.h"
#endif
-extern Net::AdminHandler *adminHandler;
-extern Net::CharHandler *charHandler;
-extern Net::ChatHandler *chatHandler;
-extern Net::GeneralHandler *generalHandler;
-extern Net::InventoryHandler *inventoryHandler;
-extern Net::LoginHandler *loginHandler;
-extern Net::GameHandler *gameHandler;
-extern Net::GuildHandler *guildHandler;
-extern Net::NpcHandler *npcHandler;
-extern Net::PartyHandler *partyHandler;
-extern Net::PlayerHandler *playerHandler;
-extern Net::SpecialHandler *specialHandler;
-extern Net::TradeHandler *tradeHandler;
+Net::AdminHandler *adminHandler = NULL;
+Net::CharHandler *charHandler = NULL;
+Net::ChatHandler *chatHandler = NULL;
+Net::GeneralHandler *generalHandler = NULL;
+Net::InventoryHandler *inventoryHandler = NULL;
+Net::LoginHandler *loginHandler = NULL;
+Net::GameHandler *gameHandler = NULL;
+Net::GuildHandler *guildHandler = NULL;
+Net::NpcHandler *npcHandler = NULL;
+Net::PartyHandler *partyHandler = NULL;
+Net::PlayerHandler *playerHandler = NULL;
+Net::SpecialHandler *specialHandler = NULL;
+Net::TradeHandler *tradeHandler = NULL;
Net::AdminHandler *Net::getAdminHandler()
{