GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/enums/being/attributesstrings.cpp Lines: 2 81 2.5 %
Date: 2017-11-29 Branches: 0 320 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2010  The Mana Developers
4
 *  Copyright (C) 2011-2017  The ManaPlus Developers
5
 *
6
 *  This file is part of The ManaPlus Client.
7
 *
8
 *  This program is free software; you can redistribute it and/or modify
9
 *  it under the terms of the GNU General Public License as published by
10
 *  the Free Software Foundation; either version 2 of the License, or
11
 *  any later version.
12
 *
13
 *  This program is distributed in the hope that it will be useful,
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 *  GNU General Public License for more details.
17
 *
18
 *  You should have received a copy of the GNU General Public License
19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 */
21
22
#include "enums/being/attributesstrings.h"
23
24
#include "enums/simpletypes/stringdefines.h"
25
26
#include <map>
27
28
#include "debug.h"
29
30
namespace AttributesEnum
31
{
32
2
    stringEnumStart(AttributesT)
33
        // player attributes
34
        strEnumDef2(Attributes, PLAYER_BASE_LEVEL, "PLAYER_LEVEL")
35
        strEnumDef(Attributes, PLAYER_HP)
36
        strEnumDef(Attributes, PLAYER_MAX_HP)
37
        strEnumDef(Attributes, PLAYER_MP)
38
        strEnumDef(Attributes, PLAYER_MAX_MP)
39
        strEnumDef(Attributes, PLAYER_EXP)
40
        strEnumDef(Attributes, PLAYER_EXP_NEEDED)
41
        strEnumDef(Attributes, MONEY)
42
        strEnumDef(Attributes, TOTAL_WEIGHT)
43
        strEnumDef(Attributes, MAX_WEIGHT)
44
        strEnumDef2(Attributes, PLAYER_JOB_LEVEL, "PLAYER_JOB")
45
        strEnumDef(Attributes, PLAYER_JOB_EXP)
46
        strEnumDef(Attributes, PLAYER_JOB_EXP_NEEDED)
47
        strEnumDef(Attributes, PLAYER_STR)
48
        strEnumDef(Attributes, PLAYER_AGI)
49
        strEnumDef(Attributes, PLAYER_VIT)
50
        strEnumDef(Attributes, PLAYER_INT)
51
        strEnumDef(Attributes, PLAYER_DEX)
52
        strEnumDef(Attributes, PLAYER_LUK)
53
        strEnumDef(Attributes, PLAYER_SKILL_POINTS)
54
        strEnumDef(Attributes, PLAYER_CHAR_POINTS)
55
        strEnumDef(Attributes, PLAYER_CORR_POINTS)
56
        strEnumDef(Attributes, PLAYER_ATTACK_DELAY)
57
        strEnumDef(Attributes, PLAYER_ATTACK_RANGE)
58
        strEnumDef(Attributes, PLAYER_WALK_SPEED)
59
        strEnumDef(Attributes, PLAYER_ATTACK_SPEED)
60
        strEnumDef(Attributes, PLAYER_KARMA)
61
        strEnumDef(Attributes, PLAYER_MANNER)
62
        strEnumDef(Attributes, PLAYER_CRIT)
63
        strEnumDef(Attributes, PLAYER_FLEE)
64
        strEnumDef(Attributes, PLAYER_HIT)
65
        strEnumDef(Attributes, PLAYER_MDEF)
66
        strEnumDef(Attributes, PLAYER_MATK)
67
        strEnumDef(Attributes, PLAYER_DEF)
68
        strEnumDef(Attributes, PLAYER_ATK)
69
        strEnumDef(Attributes, CART_TOTAL_WEIGHT)
70
        strEnumDef(Attributes, CART_MAX_WEIGHT)
71
72
        // homunculus attributes
73
        strEnumDef(Attributes, HOMUN_LEVEL)
74
        strEnumDef(Attributes, HOMUN_HP)
75
        strEnumDef(Attributes, HOMUN_MAX_HP)
76
        strEnumDef(Attributes, HOMUN_MP)
77
        strEnumDef(Attributes, HOMUN_MAX_MP)
78
        strEnumDef(Attributes, HOMUN_EXP)
79
        strEnumDef(Attributes, HOMUN_EXP_NEEDED)
80
        strEnumDef(Attributes, HOMUN_SKILL_POINTS)
81
        strEnumDef(Attributes, HOMUN_ATTACK_DELAY)
82
        strEnumDef(Attributes, HOMUN_ATTACK_RANGE)
83
        strEnumDef(Attributes, HOMUN_ATTACK_SPEED)
84
        strEnumDef(Attributes, HOMUN_CRIT)
85
        strEnumDef(Attributes, HOMUN_FLEE)
86
        strEnumDef(Attributes, HOMUN_HIT)
87
        strEnumDef(Attributes, HOMUN_MDEF)
88
        strEnumDef(Attributes, HOMUN_MATK)
89
        strEnumDef(Attributes, HOMUN_DEF)
90
        strEnumDef(Attributes, HOMUN_ATK)
91
92
        // mercenary attributes
93
        strEnumDef(Attributes, MERC_LEVEL)
94
        strEnumDef(Attributes, MERC_HP)
95
        strEnumDef(Attributes, MERC_MAX_HP)
96
        strEnumDef(Attributes, MERC_MP)
97
        strEnumDef(Attributes, MERC_MAX_MP)
98
        strEnumDef(Attributes, MERC_ATTACK_DELAY)
99
        strEnumDef(Attributes, MERC_ATTACK_RANGE)
100
        strEnumDef(Attributes, MERC_ATTACK_SPEED)
101
        strEnumDef(Attributes, MERC_CRIT)
102
        strEnumDef(Attributes, MERC_FLEE)
103
        strEnumDef(Attributes, MERC_HIT)
104
        strEnumDef(Attributes, MERC_MDEF)
105
        strEnumDef(Attributes, MERC_MATK)
106
        strEnumDef(Attributes, MERC_DEF)
107
        strEnumDef(Attributes, MERC_ATK)
108
        strEnumDef(Attributes, MERC_EXPIRE)
109
        strEnumDef(Attributes, MERC_FAITH)
110
        strEnumDef(Attributes, MERC_CALLS)
111
        strEnumDef(Attributes, MERC_KILLS)
112
113
        // elemental attributes
114
        strEnumDef(Attributes, ELEMENTAL_HP)
115
        strEnumDef(Attributes, ELEMENTAL_MAX_HP)
116
        strEnumDef(Attributes, ELEMENTAL_MP)
117
        strEnumDef(Attributes, ELEMENTAL_MAX_MP)
118
    stringEnumEnd
119
4
}  // namespace AttributesEnum