From 3e8ed12a530426b3c649922452f42d9a2b2a8d89 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 7 Apr 2009 15:10:13 -0600 Subject: Make GeneralHandlers for both networks Also make Net::LogoutHandler --- src/game.h | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 60de5cd9..ddda7cfc 100644 --- a/src/game.h +++ b/src/game.h @@ -22,17 +22,12 @@ #ifndef GAME_H #define GAME_H -#include +//#include #include "SDL.h" #include "configlistener.h" -class MessageHandler; -#ifdef EATHENA_SUPPORT -class Network; -#endif - extern std::string map_path; extern volatile int fps; extern volatile int tick_time; @@ -40,11 +35,8 @@ extern volatile int tick_time; class Game : public ConfigListener { public: -#ifdef TMWSERV_SUPPORT Game(); -#else - Game(Network *network); -#endif + ~Game(); void logic(); @@ -54,36 +46,12 @@ class Game : public ConfigListener void optionChanged(const std::string &name); private: -#ifdef EATHENA_SUPPORT - Network *mNetwork; -#endif - /** Used to determine whether to draw the next frame. */ int mDrawTime; /** The minimum frame time (used for frame limiting). */ int mMinFrameTime; - typedef const std::auto_ptr MessageHandlerPtr; - MessageHandlerPtr mBeingHandler; -#ifdef TMWSERV_SUPPORT - MessageHandlerPtr mGuildHandler; - MessageHandlerPtr mEffectHandler; -#else - MessageHandlerPtr mAdminHandler; - MessageHandlerPtr mEquipmentHandler; - MessageHandlerPtr mSkillHandler; -#endif - MessageHandlerPtr mPartyHandler; - MessageHandlerPtr mBuySellHandler; - MessageHandlerPtr mChatHandler; - MessageHandlerPtr mInventoryHandler; - MessageHandlerPtr mItemHandler; - MessageHandlerPtr mNpcHandler; - MessageHandlerPtr mPlayerHandler; - MessageHandlerPtr mPostHandler; - MessageHandlerPtr mTradeHandler; - int mLastTarget; SDL_TimerID mLogicCounterId; -- cgit v1.2.3-70-g09d2