GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/tmwa/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_TMWA_INVENTORYHANDLER_H
24
#define NET_TMWA_INVENTORYHANDLER_H
25
26
#include "net/ea/inventoryhandler.h"
27
28
namespace TmwAthena
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 useCard(const Item *const item) override final A_CONST;
60
61
        void insertCard(const int cardIndex,
62
                        const int itemIndex) const override final A_CONST;
63
64
        void favoriteItem(const Item *const item,
65
                          const bool favorite) const override final A_CONST;
66
67
        void selectEgg(const Item *const item) const override final A_CONST;
68
69
        int convertFromServerSlot(const int serverSlot)
70
                                  const override final A_WARN_UNUSED;
71
72
        void selectCart(const BeingId accountId,
73
                        const int type) const override final;
74
75
        void identifyItem(const Item *const item) const override final;
76
77
        void mergeItemsAck(const STD_VECTOR<Item*> &items) const
78
                           override final;
79
80
        void mergetItemsCancel() const override final;
81
82
        int getProjectileSlot() const override final
83
        { return 10; }
84
85
        int getItemIndex() const override final A_WARN_UNUSED
86
        { return 0; }
87
};
88
89
}  // namespace TmwAthena
90
91
#endif  // NET_TMWA_INVENTORYHANDLER_H