GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/eathena/inventoryhandler.h Lines: 0 4 0.0 %
Date: 2017-11-29 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-2017  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();
39
40
        void equipItem(const Item *const item) const override final;
41
42
        void unequipItem(const Item *const item) const override final;
43
44
        void useItem(const Item *const item) const override final;
45
46
        void useItem(const Item *const item,
47
                     const int16_t useType) const override final;
48
49
        void dropItem(const Item *const item,
50
                      const int amount) const override final;
51
52
        void closeStorage() const override final;
53
54
        void moveItem2(const InventoryTypeT source,
55
                       const int slot,
56
                       const int amount,
57
                       const InventoryTypeT destination) const override final;
58
59
        void moveItemInventoryToStorage(const int slot,
60
                                        const int amount) const;
61
62
        void useCard(const Item *const item) override final;
63
64
        void insertCard(const int cardIndex,
65
                        const int itemIndex) const override final;
66
67
        void favoriteItem(const Item *const item,
68
                          const bool favorite) const override final;
69
70
        void selectEgg(const Item *const item) const override final;
71
72
        int convertFromServerSlot(const int serverSlot)
73
                                  const override final A_WARN_UNUSED;
74
75
        void selectCart(const BeingId accountId,
76
                        const int type) const override final;
77
78
        void identifyItem(const Item *const item) const override final;
79
80
        void mergeItemsAck(const STD_VECTOR<Item*> &items) const
81
                           override final;
82
83
        void mergetItemsCancel() const override final;
84
85
        int getProjectileSlot() const override final
86
        { return 10; }
87
88
        int getItemIndex() const override final A_WARN_UNUSED
89
        { return mItemIndex; }
90
91
    private:
92
        int mItemIndex;
93
};
94
95
}  // namespace EAthena
96
97
#endif  // NET_EATHENA_INVENTORYHANDLER_H