ManaPlus
src
enums
being
attributesstrings.cpp
Go to the documentation of this file.
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
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
}
// namespace AttributesEnum
AttributesT
Attributes ::T AttributesT
Definition:
attributes.h:118
attributesstrings.h
debug.h
AttributesEnum
Definition:
attributesstrings.cpp:32
Attributes
Definition:
attributes.h:28
Attributes::MERC_FLEE
@ MERC_FLEE
Definition:
attributes.h:99
Attributes::HOMUN_MAX_MP
@ HOMUN_MAX_MP
Definition:
attributes.h:74
Attributes::CART_TOTAL_WEIGHT
@ CART_TOTAL_WEIGHT
Definition:
attributes.h:64
Attributes::PLAYER_DEX
@ PLAYER_DEX
Definition:
attributes.h:46
Attributes::MERC_LEVEL
@ MERC_LEVEL
Definition:
attributes.h:90
Attributes::HOMUN_DEF
@ HOMUN_DEF
Definition:
attributes.h:86
Attributes::CART_MAX_WEIGHT
@ CART_MAX_WEIGHT
Definition:
attributes.h:65
Attributes::PLAYER_CHAR_POINTS
@ PLAYER_CHAR_POINTS
Definition:
attributes.h:49
Attributes::HOMUN_FLEE
@ HOMUN_FLEE
Definition:
attributes.h:82
Attributes::PLAYER_FLEE
@ PLAYER_FLEE
Definition:
attributes.h:58
Attributes::HOMUN_MDEF
@ HOMUN_MDEF
Definition:
attributes.h:84
Attributes::MERC_HIT
@ MERC_HIT
Definition:
attributes.h:100
Attributes::ELEMENTAL_MAX_MP
@ ELEMENTAL_MAX_MP
Definition:
attributes.h:114
Attributes::HOMUN_HP
@ HOMUN_HP
Definition:
attributes.h:71
Attributes::PLAYER_VIT
@ PLAYER_VIT
Definition:
attributes.h:44
Attributes::ELEMENTAL_MAX_HP
@ ELEMENTAL_MAX_HP
Definition:
attributes.h:112
Attributes::PLAYER_INT
@ PLAYER_INT
Definition:
attributes.h:45
Attributes::PLAYER_EXP_NEEDED
@ PLAYER_EXP_NEEDED
Definition:
attributes.h:37
Attributes::MERC_DEF
@ MERC_DEF
Definition:
attributes.h:103
Attributes::PLAYER_HP
@ PLAYER_HP
Definition:
attributes.h:32
Attributes::PLAYER_AGI
@ PLAYER_AGI
Definition:
attributes.h:43
Attributes::PLAYER_ATTACK_SPEED
@ PLAYER_ATTACK_SPEED
Definition:
attributes.h:54
Attributes::MAX_WEIGHT
@ MAX_WEIGHT
Definition:
attributes.h:40
Attributes::HOMUN_MATK
@ HOMUN_MATK
Definition:
attributes.h:85
Attributes::HOMUN_LEVEL
@ HOMUN_LEVEL
Definition:
attributes.h:70
Attributes::MERC_CALLS
@ MERC_CALLS
Definition:
attributes.h:107
Attributes::MERC_ATTACK_RANGE
@ MERC_ATTACK_RANGE
Definition:
attributes.h:96
Attributes::MERC_ATTACK_DELAY
@ MERC_ATTACK_DELAY
Definition:
attributes.h:95
Attributes::TOTAL_WEIGHT
@ TOTAL_WEIGHT
Definition:
attributes.h:39
Attributes::PLAYER_MATK
@ PLAYER_MATK
Definition:
attributes.h:61
Attributes::MERC_MP
@ MERC_MP
Definition:
attributes.h:93
Attributes::PLAYER_MAX_MP
@ PLAYER_MAX_MP
Definition:
attributes.h:35
Attributes::HOMUN_EXP_NEEDED
@ HOMUN_EXP_NEEDED
Definition:
attributes.h:76
Attributes::PLAYER_ATTACK_RANGE
@ PLAYER_ATTACK_RANGE
Definition:
attributes.h:52
Attributes::MERC_MDEF
@ MERC_MDEF
Definition:
attributes.h:101
Attributes::MERC_EXPIRE
@ MERC_EXPIRE
Definition:
attributes.h:105
Attributes::HOMUN_HIT
@ HOMUN_HIT
Definition:
attributes.h:83
Attributes::PLAYER_BASE_LEVEL
@ PLAYER_BASE_LEVEL
Definition:
attributes.h:31
Attributes::MERC_KILLS
@ MERC_KILLS
Definition:
attributes.h:108
Attributes::HOMUN_ATTACK_SPEED
@ HOMUN_ATTACK_SPEED
Definition:
attributes.h:80
Attributes::ELEMENTAL_HP
@ ELEMENTAL_HP
Definition:
attributes.h:111
Attributes::PLAYER_KARMA
@ PLAYER_KARMA
Definition:
attributes.h:55
Attributes::PLAYER_JOB_EXP
@ PLAYER_JOB_EXP
Definition:
attributes.h:66
Attributes::PLAYER_JOB_LEVEL
@ PLAYER_JOB_LEVEL
Definition:
attributes.h:41
Attributes::PLAYER_STR
@ PLAYER_STR
Definition:
attributes.h:42
Attributes::MERC_MATK
@ MERC_MATK
Definition:
attributes.h:102
Attributes::HOMUN_SKILL_POINTS
@ HOMUN_SKILL_POINTS
Definition:
attributes.h:77
Attributes::PLAYER_WALK_SPEED
@ PLAYER_WALK_SPEED
Definition:
attributes.h:53
Attributes::PLAYER_CRIT
@ PLAYER_CRIT
Definition:
attributes.h:57
Attributes::MERC_MAX_MP
@ MERC_MAX_MP
Definition:
attributes.h:94
Attributes::PLAYER_LUK
@ PLAYER_LUK
Definition:
attributes.h:47
Attributes::HOMUN_EXP
@ HOMUN_EXP
Definition:
attributes.h:75
Attributes::PLAYER_MANNER
@ PLAYER_MANNER
Definition:
attributes.h:56
Attributes::MONEY
@ MONEY
Definition:
attributes.h:38
Attributes::PLAYER_CORR_POINTS
@ PLAYER_CORR_POINTS
Definition:
attributes.h:50
Attributes::PLAYER_MAX_HP
@ PLAYER_MAX_HP
Definition:
attributes.h:33
Attributes::MERC_FAITH
@ MERC_FAITH
Definition:
attributes.h:106
Attributes::HOMUN_MP
@ HOMUN_MP
Definition:
attributes.h:73
Attributes::MERC_CRIT
@ MERC_CRIT
Definition:
attributes.h:98
Attributes::MERC_MAX_HP
@ MERC_MAX_HP
Definition:
attributes.h:92
Attributes::PLAYER_JOB_EXP_NEEDED
@ PLAYER_JOB_EXP_NEEDED
Definition:
attributes.h:67
Attributes::PLAYER_ATK
@ PLAYER_ATK
Definition:
attributes.h:63
Attributes::HOMUN_CRIT
@ HOMUN_CRIT
Definition:
attributes.h:81
Attributes::MERC_HP
@ MERC_HP
Definition:
attributes.h:91
Attributes::PLAYER_ATTACK_DELAY
@ PLAYER_ATTACK_DELAY
Definition:
attributes.h:51
Attributes::PLAYER_HIT
@ PLAYER_HIT
Definition:
attributes.h:59
Attributes::PLAYER_MP
@ PLAYER_MP
Definition:
attributes.h:34
Attributes::HOMUN_ATTACK_RANGE
@ HOMUN_ATTACK_RANGE
Definition:
attributes.h:79
Attributes::HOMUN_MAX_HP
@ HOMUN_MAX_HP
Definition:
attributes.h:72
Attributes::MERC_ATK
@ MERC_ATK
Definition:
attributes.h:104
Attributes::PLAYER_DEF
@ PLAYER_DEF
Definition:
attributes.h:62
Attributes::PLAYER_EXP
@ PLAYER_EXP
Definition:
attributes.h:36
Attributes::ELEMENTAL_MP
@ ELEMENTAL_MP
Definition:
attributes.h:113
Attributes::HOMUN_ATK
@ HOMUN_ATK
Definition:
attributes.h:87
Attributes::MERC_ATTACK_SPEED
@ MERC_ATTACK_SPEED
Definition:
attributes.h:97
Attributes::PLAYER_MDEF
@ PLAYER_MDEF
Definition:
attributes.h:60
Attributes::PLAYER_SKILL_POINTS
@ PLAYER_SKILL_POINTS
Definition:
attributes.h:48
Attributes::HOMUN_ATTACK_DELAY
@ HOMUN_ATTACK_DELAY
Definition:
attributes.h:78
stringdefines.h
strEnumDef
#define strEnumDef(prefix, name)
Definition:
stringdefines.h:41
stringEnumStart
#define stringEnumStart(type)
Definition:
stringdefines.h:27
strEnumDef2
#define strEnumDef2(prefix, name, str)
Definition:
stringdefines.h:44
stringEnumEnd
#define stringEnumEnd
Definition:
stringdefines.h:48
Generated on Wed Mar 17 2021 19:19:05 for ManaPlus by
1.9.1