Mana
Loading...
Searching...
No Matches
attributes.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2010-2013 The Mana Developers
4 *
5 * This file is part of The Mana 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#pragma once
22
23#include <string>
24#include <vector>
25
26#include "utils/xml.h"
27
28namespace Attributes
29{
30
31 void init();
32
33 void readAttributeNode(XML::Node node, const std::string &filename);
34
35 void readPointsNode(XML::Node node, const std::string &filename);
36
37 void checkStatus();
38
39 void unload();
40
41 void informItemDB();
42
43 void informStatusWindow();
44
48 std::vector<std::string>& getLabels();
49
54 int getPlayerInfoIdFromAttrId(int attrId);
55
60 unsigned int getCreationPoints();
61
66 unsigned int getAttributeMinimum();
67
72 unsigned int getAttributeMaximum();
73
74} // namespace Attributes
void informItemDB()
void readPointsNode(XML::Node node, const std::string &filename)
Read points node.
unsigned int getAttributeMaximum()
Give the maximum attribute point possible at character's creation.
void informStatusWindow()
std::vector< std::string > & getLabels()
Returns the list of base attribute labels.
void checkStatus()
Check if all the data loaded by readPointsNode and readAttributeNode is ok.
unsigned int getCreationPoints()
Give the attribute points given to a character at its creation.
int getPlayerInfoIdFromAttrId(int attrId)
Give back the corresponding playerinfo Id from the attribute id defined in the xml file.
void unload()
void readAttributeNode(XML::Node node, const std::string &filename)
Read attribute node.
unsigned int getAttributeMinimum()
Give the minimum attribute point possible at character's creation.