From 78ab0ec914d3c5a97f162905afb3dede53f8b9ed Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 9 Mar 2006 01:20:48 +0000 Subject: Use std::auto_ptr in some places. --- src/game.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index ca7f0ed8..a44c8970 100644 --- a/src/game.h +++ b/src/game.h @@ -25,6 +25,7 @@ #define _TMW_GAME_ #include +#include #define SPEECH_TIME 80 #define SPEECH_MAX_TIME 100 @@ -49,16 +50,17 @@ class Game protected: Network *mNetwork; - MessageHandler *mBeingHandler; - MessageHandler *mBuySellHandler; - MessageHandler *mChatHandler; - MessageHandler *mEquipmentHandler; - MessageHandler *mInventoryHandler; - MessageHandler *mItemHandler; - MessageHandler *mNpcHandler; - MessageHandler *mPlayerHandler; - MessageHandler *mSkillHandler; - MessageHandler *mTradeHandler; + typedef std::auto_ptr MessageHandlerPtr; + MessageHandlerPtr mBeingHandler; + MessageHandlerPtr mBuySellHandler; + MessageHandlerPtr mChatHandler; + MessageHandlerPtr mEquipmentHandler; + MessageHandlerPtr mInventoryHandler; + MessageHandlerPtr mItemHandler; + MessageHandlerPtr mNpcHandler; + MessageHandlerPtr mPlayerHandler; + MessageHandlerPtr mSkillHandler; + MessageHandlerPtr mTradeHandler; }; /** -- cgit v1.2.3-70-g09d2