GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/enums/being/attributesstrings.cpp Lines: 2 81 2.5 %
Date: 2021-03-17 Branches: 0 160 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2010  The Mana Developers
4
 *  Copyright (C) 2011-2019  The ManaPlus Developers
5
 *  Copyright (C) 2019-2021  Andrei Karas
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
#include "enums/being/attributesstrings.h"
24
25
#include "enums/simpletypes/stringdefines.h"
26
27
#include <map>
28
29
#include "debug.h"
30
31
namespace AttributesEnum
32
{
33
1
    stringEnumStart(AttributesT)
34
        // player attributes
35
        strEnumDef2(Attributes, PLAYER_BASE_LEVEL, "PLAYER_LEVEL")
36
        strEnumDef(Attributes, PLAYER_HP)
37
        strEnumDef(Attributes, PLAYER_MAX_HP)
38
        strEnumDef(Attributes, PLAYER_MP)
39
        strEnumDef(Attributes, PLAYER_MAX_MP)
40
        strEnumDef(Attributes, PLAYER_EXP)
41
        strEnumDef(Attributes, PLAYER_EXP_NEEDED)
42
        strEnumDef(Attributes, MONEY)
43
        strEnumDef(Attributes, TOTAL_WEIGHT)
44
        strEnumDef(Attributes, MAX_WEIGHT)
45
        strEnumDef2(Attributes, PLAYER_JOB_LEVEL, "PLAYER_JOB")
46
        strEnumDef(Attributes, PLAYER_JOB_EXP)
47
        strEnumDef(Attributes, PLAYER_JOB_EXP_NEEDED)
48
        strEnumDef(Attributes, PLAYER_STR)
49
        strEnumDef(Attributes, PLAYER_AGI)
50
        strEnumDef(Attributes, PLAYER_VIT)
51
        strEnumDef(Attributes, PLAYER_INT)
52
        strEnumDef(Attributes, PLAYER_DEX)
53
        strEnumDef(Attributes, PLAYER_LUK)
54
        strEnumDef(Attributes, PLAYER_SKILL_POINTS)
55
        strEnumDef(Attributes, PLAYER_CHAR_POINTS)
56
        strEnumDef(Attributes, PLAYER_CORR_POINTS)
57
        strEnumDef(Attributes, PLAYER_ATTACK_DELAY)
58
        strEnumDef(Attributes, PLAYER_ATTACK_RANGE)
59
        strEnumDef(Attributes, PLAYER_WALK_SPEED)
60
        strEnumDef(Attributes, PLAYER_ATTACK_SPEED)
61
        strEnumDef(Attributes, PLAYER_KARMA)
62
        strEnumDef(Attributes, PLAYER_MANNER)
63
        strEnumDef(Attributes, PLAYER_CRIT)
64
        strEnumDef(Attributes, PLAYER_FLEE)
65
        strEnumDef(Attributes, PLAYER_HIT)
66
        strEnumDef(Attributes, PLAYER_MDEF)
67
        strEnumDef(Attributes, PLAYER_MATK)
68
        strEnumDef(Attributes, PLAYER_DEF)
69
        strEnumDef(Attributes, PLAYER_ATK)
70
        strEnumDef(Attributes, CART_TOTAL_WEIGHT)
71
        strEnumDef(Attributes, CART_MAX_WEIGHT)
72
73
        // homunculus attributes
74
        strEnumDef(Attributes, HOMUN_LEVEL)
75
        strEnumDef(Attributes, HOMUN_HP)
76
        strEnumDef(Attributes, HOMUN_MAX_HP)
77
        strEnumDef(Attributes, HOMUN_MP)
78
        strEnumDef(Attributes, HOMUN_MAX_MP)
79
        strEnumDef(Attributes, HOMUN_EXP)
80
        strEnumDef(Attributes, HOMUN_EXP_NEEDED)
81
        strEnumDef(Attributes, HOMUN_SKILL_POINTS)
82
        strEnumDef(Attributes, HOMUN_ATTACK_DELAY)
83
        strEnumDef(Attributes, HOMUN_ATTACK_RANGE)
84
        strEnumDef(Attributes, HOMUN_ATTACK_SPEED)
85
        strEnumDef(Attributes, HOMUN_CRIT)
86
        strEnumDef(Attributes, HOMUN_FLEE)
87
        strEnumDef(Attributes, HOMUN_HIT)
88
        strEnumDef(Attributes, HOMUN_MDEF)
89
        strEnumDef(Attributes, HOMUN_MATK)
90
        strEnumDef(Attributes, HOMUN_DEF)
91
        strEnumDef(Attributes, HOMUN_ATK)
92
93
        // mercenary attributes
94
        strEnumDef(Attributes, MERC_LEVEL)
95
        strEnumDef(Attributes, MERC_HP)
96
        strEnumDef(Attributes, MERC_MAX_HP)
97
        strEnumDef(Attributes, MERC_MP)
98
        strEnumDef(Attributes, MERC_MAX_MP)
99
        strEnumDef(Attributes, MERC_ATTACK_DELAY)
100
        strEnumDef(Attributes, MERC_ATTACK_RANGE)
101
        strEnumDef(Attributes, MERC_ATTACK_SPEED)
102
        strEnumDef(Attributes, MERC_CRIT)
103
        strEnumDef(Attributes, MERC_FLEE)
104
        strEnumDef(Attributes, MERC_HIT)
105
        strEnumDef(Attributes, MERC_MDEF)
106
        strEnumDef(Attributes, MERC_MATK)
107
        strEnumDef(Attributes, MERC_DEF)
108
        strEnumDef(Attributes, MERC_ATK)
109
        strEnumDef(Attributes, MERC_EXPIRE)
110
        strEnumDef(Attributes, MERC_FAITH)
111
        strEnumDef(Attributes, MERC_CALLS)
112
        strEnumDef(Attributes, MERC_KILLS)
113
114
        // elemental attributes
115
        strEnumDef(Attributes, ELEMENTAL_HP)
116
        strEnumDef(Attributes, ELEMENTAL_MAX_HP)
117
        strEnumDef(Attributes, ELEMENTAL_MP)
118
        strEnumDef(Attributes, ELEMENTAL_MAX_MP)
119
    stringEnumEnd
120
2
}  // namespace AttributesEnum