GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/eathena/inventoryhandler.h Lines: 0 4 0.0 %
Date: 2019-08-19 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2004-2009  The Mana World Development Team
4
 *  Copyright (C) 2009-2010  The Mana Developers
5
 *  Copyright (C) 2011-2019  The ManaPlus Developers
6
 *
7
 *  This file is part of The ManaPlus Client.
8
 *
9
 *  This program is free software; you can redistribute it and/or modify
10
 *  it under the terms of the GNU General Public License as published by
11
 *  the Free Software Foundation; either version 2 of the License, or
12
 *  any later version.
13
 *
14
 *  This program is distributed in the hope that it will be useful,
15
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 *  GNU General Public License for more details.
18
 *
19
 *  You should have received a copy of the GNU General Public License
20
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 */
22
23
#ifndef NET_EATHENA_INVENTORYHANDLER_H
24
#define NET_EATHENA_INVENTORYHANDLER_H
25
26
#include "net/ea/inventoryhandler.h"
27
28
namespace EAthena
29
{
30
31
class InventoryHandler final : public Ea::InventoryHandler
32
{
33
    public:
34
        InventoryHandler();
35
36
        A_DELETE_COPY(InventoryHandler)
37
38
        ~InventoryHandler() override final;
39
40
        void clear() const override final;
41
42
        void equipItem(const Item *const item) const override final;
43
44
        void unequipItem(const Item *const item) const override final;
45
46
        void useItem(const Item *const item) const override final;
47
48
        void useItem(const Item *const item,
49
                     const int16_t useType) const override final;
50
51
        void dropItem(const Item *const item,
52
                      const int amount) const override final;
53
54
        void closeStorage() const override final;
55
56
        void moveItem2(const InventoryTypeT source,
57
                       const int slot,
58
                       const int amount,
59
                       const InventoryTypeT destination) const override final;
60
61
        void moveItemInventoryToStorage(const int slot,
62
                                        const int amount) const;
63
64
        void useCard(const Item *const item) override final;
65
66
        void insertCard(const int cardIndex,
67
                        const int itemIndex) const override final;
68
69
        void favoriteItem(const Item *const item,
70
                          const bool favorite) const override final;
71
72
        void selectEgg(const Item *const item) const override final;
73
74
        int convertFromServerSlot(const int serverSlot)
75
                                  const override final A_WARN_UNUSED;
76
77
        void selectCart(const BeingId accountId,
78
                        const int type) const override final;
79
80
        void identifyItem(const Item *const item) const override final;
81
82
        void mergeItemsAck(const STD_VECTOR<Item*> &items) const
83
                           override final;
84
85
        void mergetItemsCancel() const override final;
86
87
        void expandInventory() const override final;
88
89
        void expandInventoryConfirm() const override final;
90
91
        void expandInventoryReject() const override final;
92
93
        int getProjectileSlot() const override final
94
        { return 10; }
95
96
        int getItemIndex() const override final A_WARN_UNUSED
97
        { return mItemIndex; }
98
99
    private:
100
        int mItemIndex;
101
};
102
103
}  // namespace EAthena
104
105
#endif  // NET_EATHENA_INVENTORYHANDLER_H