GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/resources/itemtypemapdata.h Lines: 2 2 100.0 %
Date: 2017-11-29 Branches: 52 104 50.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2014-2017  The ManaPlus Developers
4
 *
5
 *  This file is part of The ManaPlus Client.
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License
18
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
#ifndef RESOURCES_ITEMTYPEMAPDATA_H
22
#define RESOURCES_ITEMTYPEMAPDATA_H
23
24
#include "utils/gettext.h"
25
26
#include "resources/itemtypemap.h"
27
28
#include "localconsts.h"
29
30
4
ItemTypeMap itemTypeMap[] =
31
{
32
    {"generic", ItemDbType::UNUSABLE,
33
        std::string(), std::string()
34
    },
35
    {"other", ItemDbType::UNUSABLE,
36
        // TRANSLATORS: inventory button
37
        N_("Use"), N_("Use")
38
    },
39
    {"usable", ItemDbType::USABLE,
40
        // TRANSLATORS: inventory button
41
        N_("Use"), N_("Use")
42
    },
43
    {"equip-1hand", ItemDbType::EQUIPMENT_ONE_HAND_WEAPON,
44
        // TRANSLATORS: inventory button
45
        N_("Equip"), N_("Unequip")
46
    },
47
    {"equip-2hand", ItemDbType::EQUIPMENT_TWO_HANDS_WEAPON,
48
        // TRANSLATORS: inventory button
49
        N_("Equip"), N_("Unequip")
50
    },
51
    {"equip-torso", ItemDbType::EQUIPMENT_TORSO,
52
        // TRANSLATORS: inventory button
53
        N_("Equip"), N_("Unequip")
54
    },
55
    {"equip-arms", ItemDbType::EQUIPMENT_ARMS,
56
        // TRANSLATORS: inventory button
57
        N_("Equip"), N_("Unequip")
58
    },
59
    {"equip-head", ItemDbType::EQUIPMENT_HEAD,
60
        // TRANSLATORS: inventory button
61
        N_("Equip"), N_("Unequip")
62
    },
63
    {"equip-legs", ItemDbType::EQUIPMENT_LEGS,
64
        // TRANSLATORS: inventory button
65
        N_("Equip"), N_("Unequip")
66
    },
67
    {"equip-shield", ItemDbType::EQUIPMENT_SHIELD,
68
        // TRANSLATORS: inventory button
69
        N_("Equip"), N_("Unequip")
70
    },
71
    {"equip-ring", ItemDbType::EQUIPMENT_RING,
72
        // TRANSLATORS: inventory button
73
        N_("Equip"), N_("Unequip")
74
    },
75
    {"equip-charm", ItemDbType::EQUIPMENT_CHARM,
76
        // TRANSLATORS: inventory button
77
        N_("Equip"), N_("Unequip")
78
    },
79
    {"equip-necklace", ItemDbType::EQUIPMENT_NECKLACE,
80
        // TRANSLATORS: inventory button
81
        N_("Equip"), N_("Unequip")
82
    },
83
    {"equip-neck", ItemDbType::EQUIPMENT_NECKLACE,
84
        // TRANSLATORS: inventory button
85
        N_("Equip"), N_("Unequip")
86
    },
87
    {"equip-feet", ItemDbType::EQUIPMENT_FEET,
88
        // TRANSLATORS: inventory button
89
        N_("Equip"), N_("Unequip")
90
    },
91
    {"equip-ammo", ItemDbType::EQUIPMENT_AMMO,
92
        // TRANSLATORS: inventory button
93
        N_("Equip"), N_("Unequip")
94
    },
95
    {"card", ItemDbType::CARD,
96
        // TRANSLATORS: inventory button
97
        N_("Insert"), std::string()
98
    },
99
    {"racesprite", ItemDbType::SPRITE_RACE,
100
        std::string(), std::string()
101
    },
102
    {"hairsprite", ItemDbType::SPRITE_HAIR,
103
        std::string(), std::string()
104
    }
105

























216
};
106
107
#endif  // RESOURCES_ITEMTYPEMAPDATA_H