diff options
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 3 | ||||
-rw-r--r-- | src/net/tmwa/generalhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/refinehandler.cpp | 43 | ||||
-rw-r--r-- | src/net/tmwa/refinehandler.h | 42 |
4 files changed, 90 insertions, 0 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index 16b2445bf..6b6e4e9bd 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -67,6 +67,7 @@ #include "net/tmwa/maphandler.h" #include "net/tmwa/markethandler.h" #include "net/tmwa/mercenaryhandler.h" +#include "net/tmwa/refinehandler.h" #include "net/tmwa/roulettehandler.h" #include "net/tmwa/searchstorehandler.h" #include "net/tmwa/vendinghandler.h" @@ -116,6 +117,7 @@ GeneralHandler::GeneralHandler() : mMarketHandler(new MarketHandler), mBarterHandler(new BarterHandler), mMercenaryHandler(new MercenaryHandler), + mRefineHandler(new RefineHandler), mRouletteHandler(new RouletteHandler), mSearchStoreHandler(new SearchStoreHandler), mVendingHandler(new VendingHandler) @@ -164,6 +166,7 @@ GeneralHandler::~GeneralHandler() delete2(mMarketHandler) delete2(mBarterHandler) delete2(mMercenaryHandler) + delete2(mRefineHandler) delete2(mRouletteHandler) delete2(mSearchStoreHandler) delete2(mVendingHandler) diff --git a/src/net/tmwa/generalhandler.h b/src/net/tmwa/generalhandler.h index b2ded08a5..05a28930b 100644 --- a/src/net/tmwa/generalhandler.h +++ b/src/net/tmwa/generalhandler.h @@ -63,6 +63,7 @@ class MailHandler; class MapHandler; class MarketHandler; class MercenaryHandler; +class RefineHandler; class RouletteHandler; class SearchStoreHandler; class VendingHandler; @@ -131,6 +132,7 @@ class GeneralHandler final : public Net::GeneralHandler MarketHandler *mMarketHandler; BarterHandler *mBarterHandler; MercenaryHandler *mMercenaryHandler; + RefineHandler *mRefineHandler; RouletteHandler *mRouletteHandler; SearchStoreHandler *mSearchStoreHandler; VendingHandler *mVendingHandler; diff --git a/src/net/tmwa/refinehandler.cpp b/src/net/tmwa/refinehandler.cpp new file mode 100644 index 000000000..af0705303 --- /dev/null +++ b/src/net/tmwa/refinehandler.cpp @@ -0,0 +1,43 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2019 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "net/tmwa/refinehandler.h" + +#include "debug.h" + +namespace TmwAthena +{ + +RefineHandler::RefineHandler() : + Net::RefineHandler() +{ + refineHandler = this; +} + +RefineHandler::~RefineHandler() +{ + refineHandler = nullptr; +} + +void RefineHandler::addItem(const Item *const item A_UNUSED) const +{ +} + +} // namespace TmwAthena diff --git a/src/net/tmwa/refinehandler.h b/src/net/tmwa/refinehandler.h new file mode 100644 index 000000000..d5ae231ab --- /dev/null +++ b/src/net/tmwa/refinehandler.h @@ -0,0 +1,42 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2019 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef NET_TMWA_REFINEHANDLER_H +#define NET_TMWA_REFINEHANDLER_H + +#include "net/refinehandler.h" + +namespace TmwAthena +{ +class RefineHandler final : public Net::RefineHandler +{ + public: + RefineHandler(); + + A_DELETE_COPY(RefineHandler) + + ~RefineHandler() override final; + + void addItem(const Item *const item) const override final; +}; + +} // namespace TmwAthena + +#endif // NET_TMWA_REFINEHANDLER_H |