ManaPlus
chardb.h
Go to the documentation of this file.
1 /*
2  * The ManaPlus Client
3  * Copyright (C) 2008 Aethyra Development Team
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 #ifndef RESOURCES_DB_CHARDB_H
24 #define RESOURCES_DB_CHARDB_H
25 
26 #include "utils/xml.h"
27 
28 #include "utils/vector.h"
29 
30 #include "resources/beingslot.h"
31 
35 namespace CharDB
36 {
40  void load();
41 
45  void unload();
46 
47  void loadMinMax(XmlNodeConstPtr node,
48  unsigned *restrict const min,
49  unsigned *restrict const max);
50 
51  unsigned getMinHairColor() A_WARN_UNUSED;
52 
53  unsigned getMaxHairColor() A_WARN_UNUSED;
54 
55  unsigned getMinHairStyle() A_WARN_UNUSED;
56 
57  unsigned getMaxHairStyle() A_WARN_UNUSED;
58 
59  unsigned getMinStat() A_WARN_UNUSED;
60 
61  unsigned getMaxStat() A_WARN_UNUSED;
62 
63  unsigned getSumStat() A_WARN_UNUSED;
64 
65  unsigned getMinLook() A_WARN_UNUSED;
66 
67  unsigned getMaxLook() A_WARN_UNUSED;
68 
69  unsigned getMinRace() A_WARN_UNUSED;
70 
71  unsigned getMaxRace() A_WARN_UNUSED;
72 
73  const STD_VECTOR<BeingSlot> &getDefaultItems() A_WARN_UNUSED;
74 } // namespace CharDB
75 
76 #endif // RESOURCES_DB_CHARDB_H
#define restrict
Definition: localconsts.h:165
#define A_WARN_UNUSED
Definition: localconsts.h:161
Definition: chardb.h:36
void unload()
Definition: chardb.cpp:125
const std::vector< BeingSlot > & getDefaultItems()
Definition: chardb.cpp:187
unsigned getSumStat()
Definition: chardb.cpp:162
unsigned getMinLook()
Definition: chardb.cpp:167
unsigned getMinRace()
Definition: chardb.cpp:177
unsigned getMinStat()
Definition: chardb.cpp:152
unsigned getMaxLook()
Definition: chardb.cpp:172
void load()
Definition: chardb.cpp:47
unsigned getMinHairStyle()
Definition: chardb.cpp:142
void loadMinMax(const xmlNodePtr node, unsigned *const min, unsigned *const max)
Definition: chardb.cpp:115
unsigned getMaxHairStyle()
Definition: chardb.cpp:147
unsigned getMaxStat()
Definition: chardb.cpp:157
unsigned getMaxHairColor()
Definition: chardb.cpp:137
unsigned getMaxRace()
Definition: chardb.cpp:182
unsigned getMinHairColor()
Definition: chardb.cpp:132