diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-03 21:13:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-03 21:13:18 +0300 |
commit | af61285030fa17604a0d3812c679c45cdc8c2a5d (patch) | |
tree | 1d37788d1e03b7cca8b20e3d6c4a68ad70ac02c9 /src/net/tmwa | |
parent | 4546f29469d01fcbb5a030c4cf1746b786b495da (diff) | |
download | mv-af61285030fa17604a0d3812c679c45cdc8c2a5d.tar.gz mv-af61285030fa17604a0d3812c679c45cdc8c2a5d.tar.bz2 mv-af61285030fa17604a0d3812c679c45cdc8c2a5d.tar.xz mv-af61285030fa17604a0d3812c679c45cdc8c2a5d.zip |
Remove network handlers in general handler was deleted.
Diffstat (limited to 'src/net/tmwa')
61 files changed, 235 insertions, 0 deletions
diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index cd6583520..b0d2ebfa3 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -41,6 +41,11 @@ AdminHandler::AdminHandler() : adminHandler = this; } +AdminHandler::~AdminHandler() +{ + adminHandler = nullptr; +} + void AdminHandler::announce(const std::string &text) const { createOutPacket(CMSG_ADMIN_ANNOUNCE); diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index 7cbf7c0f8..01e7adcac 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -35,6 +35,8 @@ class AdminHandler final : public Ea::AdminHandler A_DELETE_COPY(AdminHandler) + ~AdminHandler(); + void announce(const std::string &text) const override final; void localAnnounce(const std::string &text) const override final; diff --git a/src/net/tmwa/auctionhandler.cpp b/src/net/tmwa/auctionhandler.cpp index d1538c1db..1a45e4135 100644 --- a/src/net/tmwa/auctionhandler.cpp +++ b/src/net/tmwa/auctionhandler.cpp @@ -30,6 +30,11 @@ AuctionHandler::AuctionHandler() auctionHandler = this; } +AuctionHandler::~AuctionHandler() +{ + auctionHandler = nullptr; +} + void AuctionHandler::cancelReg() const { } diff --git a/src/net/tmwa/auctionhandler.h b/src/net/tmwa/auctionhandler.h index c8161f8af..9e88e603d 100644 --- a/src/net/tmwa/auctionhandler.h +++ b/src/net/tmwa/auctionhandler.h @@ -32,6 +32,8 @@ class AuctionHandler final : public Net::AuctionHandler A_DELETE_COPY(AuctionHandler) + ~AuctionHandler(); + void cancelReg() const override final A_CONST; void setItem(const Item *const item, diff --git a/src/net/tmwa/bankhandler.cpp b/src/net/tmwa/bankhandler.cpp index 521eb6d4c..cacab379f 100644 --- a/src/net/tmwa/bankhandler.cpp +++ b/src/net/tmwa/bankhandler.cpp @@ -31,6 +31,11 @@ BankHandler::BankHandler() : bankHandler = this; } +BankHandler::~BankHandler() +{ + bankHandler = nullptr; +} + void BankHandler::deposit(const int money A_UNUSED) const { } diff --git a/src/net/tmwa/bankhandler.h b/src/net/tmwa/bankhandler.h index 55eab9716..a99b7d50d 100644 --- a/src/net/tmwa/bankhandler.h +++ b/src/net/tmwa/bankhandler.h @@ -33,6 +33,8 @@ class BankHandler final : public Net::BankHandler A_DELETE_COPY(BankHandler) + ~BankHandler(); + void deposit(const int money) const override final A_CONST; void withdraw(const int money) const override final A_CONST; diff --git a/src/net/tmwa/battlegroundhandler.cpp b/src/net/tmwa/battlegroundhandler.cpp index ecb80f177..b8631da1b 100644 --- a/src/net/tmwa/battlegroundhandler.cpp +++ b/src/net/tmwa/battlegroundhandler.cpp @@ -30,6 +30,11 @@ BattleGroundHandler::BattleGroundHandler() battleGroundHandler = this; } +BattleGroundHandler::~BattleGroundHandler() +{ + battleGroundHandler = nullptr; +} + void BattleGroundHandler::registerBg(const BattleGroundTypeT &type A_UNUSED, const std::string &name A_UNUSED) const diff --git a/src/net/tmwa/battlegroundhandler.h b/src/net/tmwa/battlegroundhandler.h index b04b9d8fa..2a1126589 100644 --- a/src/net/tmwa/battlegroundhandler.h +++ b/src/net/tmwa/battlegroundhandler.h @@ -33,6 +33,8 @@ class BattleGroundHandler final : public Net::BattleGroundHandler A_DELETE_COPY(BattleGroundHandler) + ~BattleGroundHandler(); + void registerBg(const BattleGroundTypeT &type, const std::string &name) const override final A_CONST; diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index da0b18fbf..c4e57627e 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -37,6 +37,11 @@ BeingHandler::BeingHandler(const bool enableSync) : beingHandler = this; } +BeingHandler::~BeingHandler() +{ + beingHandler = nullptr; +} + void BeingHandler::requestNameById(const BeingId id) const { createOutPacket(CMSG_NAME_REQUEST); diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h index 97e46feb3..04cced3ed 100644 --- a/src/net/tmwa/beinghandler.h +++ b/src/net/tmwa/beinghandler.h @@ -35,6 +35,8 @@ class BeingHandler final : public Ea::BeingHandler A_DELETE_COPY(BeingHandler) + ~BeingHandler(); + void requestNameById(const BeingId id) const override final; void undress(Being *const being) const override final; diff --git a/src/net/tmwa/buyingstorehandler.cpp b/src/net/tmwa/buyingstorehandler.cpp index 9ea2a9822..4d028f918 100644 --- a/src/net/tmwa/buyingstorehandler.cpp +++ b/src/net/tmwa/buyingstorehandler.cpp @@ -30,6 +30,11 @@ BuyingStoreHandler::BuyingStoreHandler() buyingStoreHandler = this; } +BuyingStoreHandler::~BuyingStoreHandler() +{ + buyingStoreHandler = nullptr; +} + void BuyingStoreHandler::create(const std::string &name A_UNUSED, const int maxMoney A_UNUSED, const bool flag A_UNUSED, diff --git a/src/net/tmwa/buyingstorehandler.h b/src/net/tmwa/buyingstorehandler.h index 5a9ce21cc..584293021 100644 --- a/src/net/tmwa/buyingstorehandler.h +++ b/src/net/tmwa/buyingstorehandler.h @@ -33,6 +33,8 @@ class BuyingStoreHandler final : public Net::BuyingStoreHandler A_DELETE_COPY(BuyingStoreHandler) + ~BuyingStoreHandler(); + void create(const std::string &name, const int maxMoney, const bool flag, diff --git a/src/net/tmwa/buysellhandler.cpp b/src/net/tmwa/buysellhandler.cpp index e343614bd..7d69c8a7a 100644 --- a/src/net/tmwa/buysellhandler.cpp +++ b/src/net/tmwa/buysellhandler.cpp @@ -45,6 +45,11 @@ BuySellHandler::BuySellHandler() : Ea::BuySellRecv::mBuyDialog = nullptr; } +BuySellHandler::~BuySellHandler() +{ + buySellHandler = nullptr; +} + void BuySellHandler::requestSellList(const std::string &nick) const { if (nick.empty() || shopWindow == nullptr) diff --git a/src/net/tmwa/buysellhandler.h b/src/net/tmwa/buysellhandler.h index 0d506a67c..461935cda 100644 --- a/src/net/tmwa/buysellhandler.h +++ b/src/net/tmwa/buysellhandler.h @@ -35,6 +35,8 @@ class BuySellHandler final : public Ea::BuySellHandler A_DELETE_COPY(BuySellHandler) + ~BuySellHandler(); + void requestSellList(const std::string &nick) const override final; diff --git a/src/net/tmwa/cashshophandler.cpp b/src/net/tmwa/cashshophandler.cpp index 81a8e2871..9477af1cc 100644 --- a/src/net/tmwa/cashshophandler.cpp +++ b/src/net/tmwa/cashshophandler.cpp @@ -31,6 +31,11 @@ CashShopHandler::CashShopHandler() : cashShopHandler = this; } +CashShopHandler::~CashShopHandler() +{ + cashShopHandler = nullptr; +} + void CashShopHandler::buyItem(const int points A_UNUSED, const int itemId A_UNUSED, const ItemColor color A_UNUSED, diff --git a/src/net/tmwa/cashshophandler.h b/src/net/tmwa/cashshophandler.h index 328758960..31d5872dd 100644 --- a/src/net/tmwa/cashshophandler.h +++ b/src/net/tmwa/cashshophandler.h @@ -33,6 +33,8 @@ class CashShopHandler final : public Net::CashShopHandler A_DELETE_COPY(CashShopHandler) + ~CashShopHandler(); + void buyItem(const int points, const int itemId, const ItemColor color, diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index 4d5ae293b..258c1c163 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -52,6 +52,11 @@ CharServerHandler::CharServerHandler() : charServerHandler = this; } +CharServerHandler::~CharServerHandler() +{ + charServerHandler = nullptr; +} + void CharServerHandler::chooseCharacter(Net::Character *const character) const { if (character == nullptr) diff --git a/src/net/tmwa/charserverhandler.h b/src/net/tmwa/charserverhandler.h index 43050b365..e71fdb1b9 100644 --- a/src/net/tmwa/charserverhandler.h +++ b/src/net/tmwa/charserverhandler.h @@ -38,6 +38,8 @@ class CharServerHandler final : public Ea::CharServerHandler A_DELETE_COPY(CharServerHandler) + ~CharServerHandler(); + void chooseCharacter(Net::Character *const character) const override final; diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 1b706495f..2b768ffe2 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -47,6 +47,11 @@ ChatHandler::ChatHandler() : chatHandler = this; } +ChatHandler::~ChatHandler() +{ + chatHandler = nullptr; +} + void ChatHandler::talk(const std::string &restrict text, const std::string &restrict channel A_UNUSED) const { diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h index faa0833d3..12de8067c 100644 --- a/src/net/tmwa/chathandler.h +++ b/src/net/tmwa/chathandler.h @@ -36,6 +36,8 @@ class ChatHandler final : public Ea::ChatHandler A_DELETE_COPY(ChatHandler) + ~ChatHandler(); + void talk(const std::string &restrict text, const std::string &restrict channel) const override final; diff --git a/src/net/tmwa/elementalhandler.cpp b/src/net/tmwa/elementalhandler.cpp index bf9caae25..78230f3df 100644 --- a/src/net/tmwa/elementalhandler.cpp +++ b/src/net/tmwa/elementalhandler.cpp @@ -31,4 +31,9 @@ ElementalHandler::ElementalHandler() : elementalHandler = this; } +ElementalHandler::~ElementalHandler() +{ + elementalHandler = nullptr; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/elementalhandler.h b/src/net/tmwa/elementalhandler.h index 0823ea262..5aea5b5d2 100644 --- a/src/net/tmwa/elementalhandler.h +++ b/src/net/tmwa/elementalhandler.h @@ -31,6 +31,8 @@ namespace TmwAthena ElementalHandler(); A_DELETE_COPY(ElementalHandler) + + ~ElementalHandler(); }; } // namespace TmwAthena diff --git a/src/net/tmwa/familyhandler.cpp b/src/net/tmwa/familyhandler.cpp index b347e9880..9f5bb7fe9 100644 --- a/src/net/tmwa/familyhandler.cpp +++ b/src/net/tmwa/familyhandler.cpp @@ -31,6 +31,11 @@ FamilyHandler::FamilyHandler() : familyHandler = this; } +FamilyHandler::~FamilyHandler() +{ + familyHandler = nullptr; +} + void FamilyHandler::askForChild(const Being *const being A_UNUSED) const { } diff --git a/src/net/tmwa/familyhandler.h b/src/net/tmwa/familyhandler.h index c62e7f996..b2cc6c96a 100644 --- a/src/net/tmwa/familyhandler.h +++ b/src/net/tmwa/familyhandler.h @@ -33,6 +33,8 @@ class FamilyHandler final : public Net::FamilyHandler A_DELETE_COPY(FamilyHandler) + ~FamilyHandler(); + void askForChild(const Being *const being) const override final A_CONST; diff --git a/src/net/tmwa/friendshandler.cpp b/src/net/tmwa/friendshandler.cpp index 99f99c576..094952df4 100644 --- a/src/net/tmwa/friendshandler.cpp +++ b/src/net/tmwa/friendshandler.cpp @@ -30,6 +30,11 @@ FriendsHandler::FriendsHandler() friendsHandler = this; } +FriendsHandler::~FriendsHandler() +{ + friendsHandler = nullptr; +} + void FriendsHandler::invite(const std::string &name A_UNUSED) const { } diff --git a/src/net/tmwa/friendshandler.h b/src/net/tmwa/friendshandler.h index b6db2d5b4..ef9d05c60 100644 --- a/src/net/tmwa/friendshandler.h +++ b/src/net/tmwa/friendshandler.h @@ -32,6 +32,8 @@ class FriendsHandler final : public Net::FriendsHandler A_DELETE_COPY(FriendsHandler) + ~FriendsHandler(); + void invite(const std::string &name) const override final A_CONST; void inviteResponse(const int accountId, diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp index 2fec57df3..d13c46919 100644 --- a/src/net/tmwa/gamehandler.cpp +++ b/src/net/tmwa/gamehandler.cpp @@ -48,6 +48,11 @@ GameHandler::GameHandler() : gameHandler = this; } +GameHandler::~GameHandler() +{ + gameHandler = nullptr; +} + void GameHandler::mapLoadedEvent() const { createOutPacket(CMSG_MAP_LOADED); diff --git a/src/net/tmwa/gamehandler.h b/src/net/tmwa/gamehandler.h index c38880eb3..78d30e7e3 100644 --- a/src/net/tmwa/gamehandler.h +++ b/src/net/tmwa/gamehandler.h @@ -35,6 +35,8 @@ class GameHandler final : public Ea::GameHandler A_DELETE_COPY(GameHandler) + ~GameHandler(); + void connect() const override final; bool isConnected() const override final A_WARN_UNUSED; diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index 577d384b7..9f47c20ba 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -117,6 +117,41 @@ GeneralHandler::GeneralHandler() : GeneralHandler::~GeneralHandler() { delete2(Network::mInstance); + + delete2(mAdminHandler); + delete2(mBeingHandler); + delete2(mBuySellHandler); + delete2(mCharServerHandler); + delete2(mChatHandler); + delete2(mGameHandler); + delete2(mGuildHandler); + delete2(mInventoryHandler); + delete2(mItemHandler); + delete2(mLoginHandler); + delete2(mNpcHandler); + delete2(mPartyHandler); + delete2(mPetHandler); + delete2(mPlayerHandler); + delete2(mSkillHandler); + delete2(mTradeHandler); + delete2(mQuestHandler); + delete2(mServerFeatures); + delete2(mAuctionHandler); + delete2(mBankHandler); + delete2(mBattleGroundHandler); + delete2(mBuyingStoreHandler); + delete2(mCashShopHandler); + delete2(mElementalHandler); + delete2(mFamilyHandler); + delete2(mFriendsHandler); + delete2(mHomunculusHandler); + delete2(mMailHandler); + delete2(mMapHandler); + delete2(mMarketHandler); + delete2(mMercenaryHandler); + delete2(mRouletteHandler); + delete2(mSearchStoreHandler); + delete2(mVendingHandler); } void GeneralHandler::load() const diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp index 926d15d59..5b41ef49a 100644 --- a/src/net/tmwa/guildhandler.cpp +++ b/src/net/tmwa/guildhandler.cpp @@ -34,6 +34,7 @@ GuildHandler::GuildHandler() : GuildHandler::~GuildHandler() { + guildHandler = nullptr; } void GuildHandler::clear() const diff --git a/src/net/tmwa/homunculushandler.cpp b/src/net/tmwa/homunculushandler.cpp index 320e43b7d..0d1bb2e62 100644 --- a/src/net/tmwa/homunculushandler.cpp +++ b/src/net/tmwa/homunculushandler.cpp @@ -30,6 +30,11 @@ HomunculusHandler::HomunculusHandler() homunculusHandler = this; } +HomunculusHandler::~HomunculusHandler() +{ + homunculusHandler = nullptr; +} + void HomunculusHandler::setName(const std::string &name A_UNUSED) const { } diff --git a/src/net/tmwa/homunculushandler.h b/src/net/tmwa/homunculushandler.h index 3ac2d22a7..bd00927fa 100644 --- a/src/net/tmwa/homunculushandler.h +++ b/src/net/tmwa/homunculushandler.h @@ -33,6 +33,8 @@ class HomunculusHandler final : public Net::HomunculusHandler A_DELETE_COPY(HomunculusHandler) + ~HomunculusHandler(); + void setName(const std::string &name) const override final A_CONST; void moveToMaster() const override final A_CONST; diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index 8328f159a..e87b748c7 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -63,6 +63,7 @@ InventoryHandler::InventoryHandler() : InventoryHandler::~InventoryHandler() { + inventoryHandler = nullptr; } void InventoryHandler::equipItem(const Item *const item) const diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index ea57a6f5a..566cc5b09 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -47,6 +47,7 @@ LoginHandler::LoginHandler() : LoginHandler::~LoginHandler() { + loginHandler = nullptr; } void LoginHandler::connect() const diff --git a/src/net/tmwa/mailhandler.cpp b/src/net/tmwa/mailhandler.cpp index c339fd067..2a124e504 100644 --- a/src/net/tmwa/mailhandler.cpp +++ b/src/net/tmwa/mailhandler.cpp @@ -30,6 +30,11 @@ MailHandler::MailHandler() mailHandler = this; } +MailHandler::~MailHandler() +{ + mailHandler = nullptr; +} + void MailHandler::refresh() const { } diff --git a/src/net/tmwa/mailhandler.h b/src/net/tmwa/mailhandler.h index 94b6981c7..94867a7a7 100644 --- a/src/net/tmwa/mailhandler.h +++ b/src/net/tmwa/mailhandler.h @@ -33,6 +33,8 @@ class MailHandler final : public Net::MailHandler A_DELETE_COPY(MailHandler) + ~MailHandler(); + void refresh() const override final A_CONST; void readMessage(const int msgId) const override final A_CONST; diff --git a/src/net/tmwa/maphandler.cpp b/src/net/tmwa/maphandler.cpp index 277cf8e9c..642480a4d 100644 --- a/src/net/tmwa/maphandler.cpp +++ b/src/net/tmwa/maphandler.cpp @@ -31,4 +31,9 @@ MapHandler::MapHandler() : mapHandler = this; } +MapHandler::~MapHandler() +{ + mapHandler = nullptr; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/maphandler.h b/src/net/tmwa/maphandler.h index df061dde2..10382222d 100644 --- a/src/net/tmwa/maphandler.h +++ b/src/net/tmwa/maphandler.h @@ -32,6 +32,8 @@ class MapHandler final : public Net::MapHandler MapHandler(); A_DELETE_COPY(MapHandler) + + ~MapHandler(); }; } // namespace TmwAthena diff --git a/src/net/tmwa/markethandler.cpp b/src/net/tmwa/markethandler.cpp index e5e64d9a1..1a2f6b548 100644 --- a/src/net/tmwa/markethandler.cpp +++ b/src/net/tmwa/markethandler.cpp @@ -31,6 +31,11 @@ MarketHandler::MarketHandler() : marketHandler = this; } +MarketHandler::~MarketHandler() +{ + marketHandler = nullptr; +} + void MarketHandler::close() const { } diff --git a/src/net/tmwa/markethandler.h b/src/net/tmwa/markethandler.h index fe0f97006..923b697c0 100644 --- a/src/net/tmwa/markethandler.h +++ b/src/net/tmwa/markethandler.h @@ -32,6 +32,8 @@ class MarketHandler final : public Net::MarketHandler A_DELETE_COPY(MarketHandler) + ~MarketHandler(); + void close() const override final A_CONST; void buyItem(const int itemId, diff --git a/src/net/tmwa/mercenaryhandler.cpp b/src/net/tmwa/mercenaryhandler.cpp index 9e1b58c50..7f824180a 100644 --- a/src/net/tmwa/mercenaryhandler.cpp +++ b/src/net/tmwa/mercenaryhandler.cpp @@ -30,6 +30,11 @@ MercenaryHandler::MercenaryHandler() mercenaryHandler = this; } +MercenaryHandler::~MercenaryHandler() +{ + mercenaryHandler = nullptr; +} + void MercenaryHandler::fire() const { } diff --git a/src/net/tmwa/mercenaryhandler.h b/src/net/tmwa/mercenaryhandler.h index 925f0d7db..eaba1f2fd 100644 --- a/src/net/tmwa/mercenaryhandler.h +++ b/src/net/tmwa/mercenaryhandler.h @@ -33,6 +33,8 @@ class MercenaryHandler final : public Net::MercenaryHandler A_DELETE_COPY(MercenaryHandler) + ~MercenaryHandler(); + void fire() const override final A_CONST; void moveToMaster() const override final A_CONST; diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp index 9478282ea..e4a9296fc 100644 --- a/src/net/tmwa/npchandler.cpp +++ b/src/net/tmwa/npchandler.cpp @@ -48,6 +48,11 @@ NpcHandler::NpcHandler() : npcHandler = this; } +NpcHandler::~NpcHandler() +{ + npcHandler = nullptr; +} + void NpcHandler::talk(const Being *const being) const { if (being == nullptr) diff --git a/src/net/tmwa/npchandler.h b/src/net/tmwa/npchandler.h index 5f413012f..14bfefb66 100644 --- a/src/net/tmwa/npchandler.h +++ b/src/net/tmwa/npchandler.h @@ -35,6 +35,8 @@ class NpcHandler final : public Ea::NpcHandler A_DELETE_COPY(NpcHandler) + ~NpcHandler(); + void talk(const Being *const being) const override final; void nextDialog(const BeingId npcId) const override final; diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp index 64bebcde7..cef9588f7 100644 --- a/src/net/tmwa/partyhandler.cpp +++ b/src/net/tmwa/partyhandler.cpp @@ -47,6 +47,7 @@ PartyHandler::PartyHandler() : PartyHandler::~PartyHandler() { + partyHandler = nullptr; } void PartyHandler::create(const std::string &name) const diff --git a/src/net/tmwa/pethandler.cpp b/src/net/tmwa/pethandler.cpp index adb82f16f..c10fd5882 100644 --- a/src/net/tmwa/pethandler.cpp +++ b/src/net/tmwa/pethandler.cpp @@ -31,6 +31,11 @@ PetHandler::PetHandler() : petHandler = this; } +PetHandler::~PetHandler() +{ + petHandler = nullptr; +} + void PetHandler::move(const int x A_UNUSED, const int y A_UNUSED) const { diff --git a/src/net/tmwa/pethandler.h b/src/net/tmwa/pethandler.h index 1e2f01c48..e7a816d21 100644 --- a/src/net/tmwa/pethandler.h +++ b/src/net/tmwa/pethandler.h @@ -33,6 +33,8 @@ class PetHandler final : public Net::PetHandler A_DELETE_COPY(PetHandler) + ~PetHandler(); + void move(const int x, const int y) const override final; diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index bf246b39e..70139cd4a 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -53,6 +53,11 @@ PlayerHandler::PlayerHandler() : playerHandler = this; } +PlayerHandler::~PlayerHandler() +{ + playerHandler = nullptr; +} + void PlayerHandler::attack(const BeingId id, const Keep keep) const { diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h index e205ba914..898a03057 100644 --- a/src/net/tmwa/playerhandler.h +++ b/src/net/tmwa/playerhandler.h @@ -35,6 +35,8 @@ class PlayerHandler final : public Ea::PlayerHandler A_DELETE_COPY(PlayerHandler) + ~PlayerHandler(); + void attack(const BeingId id, const Keep keep) const override final; void stopAttack() const override final; diff --git a/src/net/tmwa/questhandler.cpp b/src/net/tmwa/questhandler.cpp index e4c3c9def..1acc60740 100644 --- a/src/net/tmwa/questhandler.cpp +++ b/src/net/tmwa/questhandler.cpp @@ -31,6 +31,11 @@ QuestHandler::QuestHandler() : questHandler = this; } +QuestHandler::~QuestHandler() +{ + questHandler = nullptr; +} + void QuestHandler::setQeustActiveState(const int questId A_UNUSED, const bool active A_UNUSED) const { diff --git a/src/net/tmwa/questhandler.h b/src/net/tmwa/questhandler.h index c2a47f46f..4c56ef0c9 100644 --- a/src/net/tmwa/questhandler.h +++ b/src/net/tmwa/questhandler.h @@ -33,6 +33,8 @@ class QuestHandler final : public Net::QuestHandler A_DELETE_COPY(QuestHandler) + ~QuestHandler(); + void setQeustActiveState(const int questId, const bool active) const override final A_CONST; diff --git a/src/net/tmwa/roulettehandler.cpp b/src/net/tmwa/roulettehandler.cpp index 33e16b870..03b1afd8a 100644 --- a/src/net/tmwa/roulettehandler.cpp +++ b/src/net/tmwa/roulettehandler.cpp @@ -31,4 +31,9 @@ RouletteHandler::RouletteHandler() : rouletteHandler = this; } +RouletteHandler::~RouletteHandler() +{ + rouletteHandler = nullptr; +} + } // namespace TmwAthena diff --git a/src/net/tmwa/roulettehandler.h b/src/net/tmwa/roulettehandler.h index 990a46741..b575d3ca3 100644 --- a/src/net/tmwa/roulettehandler.h +++ b/src/net/tmwa/roulettehandler.h @@ -31,6 +31,8 @@ class RouletteHandler final : public Net::RouletteHandler RouletteHandler(); A_DELETE_COPY(RouletteHandler) + + ~RouletteHandler(); }; } // namespace TmwAthena diff --git a/src/net/tmwa/searchstorehandler.cpp b/src/net/tmwa/searchstorehandler.cpp index 54de0cc63..34f41fb8a 100644 --- a/src/net/tmwa/searchstorehandler.cpp +++ b/src/net/tmwa/searchstorehandler.cpp @@ -31,6 +31,11 @@ SearchStoreHandler::SearchStoreHandler() : searchStoreHandler = this; } +SearchStoreHandler::~SearchStoreHandler() +{ + searchStoreHandler = nullptr; +} + void SearchStoreHandler::search(const StoreSearchTypeT type A_UNUSED, const int minPrice A_UNUSED, const int maxPrice A_UNUSED, diff --git a/src/net/tmwa/searchstorehandler.h b/src/net/tmwa/searchstorehandler.h index ff192cd50..20112fcb1 100644 --- a/src/net/tmwa/searchstorehandler.h +++ b/src/net/tmwa/searchstorehandler.h @@ -32,6 +32,8 @@ class SearchStoreHandler final : public Net::SearchStoreHandler A_DELETE_COPY(SearchStoreHandler) + ~SearchStoreHandler(); + void search(const StoreSearchTypeT type, const int minPrice, const int maxPrice, diff --git a/src/net/tmwa/skillhandler.cpp b/src/net/tmwa/skillhandler.cpp index 47d08ac62..9f8de7b2f 100644 --- a/src/net/tmwa/skillhandler.cpp +++ b/src/net/tmwa/skillhandler.cpp @@ -36,6 +36,11 @@ SkillHandler::SkillHandler() : skillHandler = this; } +SkillHandler::~SkillHandler() +{ + skillHandler = nullptr; +} + void SkillHandler::useBeing(const int id, const int level, const BeingId beingId) const { diff --git a/src/net/tmwa/skillhandler.h b/src/net/tmwa/skillhandler.h index 687336aa7..324774bea 100644 --- a/src/net/tmwa/skillhandler.h +++ b/src/net/tmwa/skillhandler.h @@ -35,6 +35,8 @@ class SkillHandler final : public Ea::SkillHandler A_DELETE_COPY(SkillHandler) + ~SkillHandler(); + void useBeing(const int id, const int level, const BeingId beingId) const override final; diff --git a/src/net/tmwa/tradehandler.cpp b/src/net/tmwa/tradehandler.cpp index 10273c7a7..f82612bd0 100644 --- a/src/net/tmwa/tradehandler.cpp +++ b/src/net/tmwa/tradehandler.cpp @@ -44,6 +44,11 @@ TradeHandler::TradeHandler() : tradeHandler = this; } +TradeHandler::~TradeHandler() +{ + tradeHandler = nullptr; +} + void TradeHandler::request(const Being *const being) const { if (being == nullptr) diff --git a/src/net/tmwa/tradehandler.h b/src/net/tmwa/tradehandler.h index 7a1f5204c..b8538f1bc 100644 --- a/src/net/tmwa/tradehandler.h +++ b/src/net/tmwa/tradehandler.h @@ -35,6 +35,8 @@ class TradeHandler final : public Ea::TradeHandler A_DELETE_COPY(TradeHandler) + ~TradeHandler(); + void request(const Being *const being) const override final; void respond(const bool accept) const override final; diff --git a/src/net/tmwa/vendinghandler.cpp b/src/net/tmwa/vendinghandler.cpp index 726dda217..30237cb0e 100644 --- a/src/net/tmwa/vendinghandler.cpp +++ b/src/net/tmwa/vendinghandler.cpp @@ -30,6 +30,11 @@ VendingHandler::VendingHandler() vendingHandler = this; } +VendingHandler::~VendingHandler() +{ + vendingHandler = nullptr; +} + void VendingHandler::close() const { } diff --git a/src/net/tmwa/vendinghandler.h b/src/net/tmwa/vendinghandler.h index 8091e0c7e..3af4a110b 100644 --- a/src/net/tmwa/vendinghandler.h +++ b/src/net/tmwa/vendinghandler.h @@ -33,6 +33,8 @@ class VendingHandler final : public Net::VendingHandler A_DELETE_COPY(VendingHandler) + ~VendingHandler(); + void close() const override final A_CONST; void open(const Being *const being) const override final A_CONST; |