Skip to content

Commit e2123b4

Browse files
committed
Added missing header
1 parent 6bc6ea4 commit e2123b4

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

src/Ruleset/RuleCommendations.h

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
* Copyright 2010-2013 OpenXcom Developers.
3+
*
4+
* This file is part of OpenXcom.
5+
*
6+
* OpenXcom is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* OpenXcom is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with OpenXcom. If not, see <http://www.gnu.org/licenses/>.
18+
*/
19+
#ifndef OPENXCOM_RULECOMMENDATIONS_H
20+
#define OPENXCOM_RULECOMMENDATIONS_H
21+
22+
#include <yaml-cpp/yaml.h>
23+
24+
namespace OpenXcom
25+
{
26+
27+
/**
28+
* For adding a set of extra sprite data to the game.
29+
*/
30+
class RuleCommendations
31+
{
32+
private:
33+
std::string _type, _description;
34+
std::map<std::string, std::vector<int> > _criteria;
35+
std::map<std::string, std::vector<int> > _bonus;
36+
int _listOrder;
37+
public:
38+
/// Creates a blank commendation ruleset.
39+
RuleCommendations(const std::string &type);
40+
/// Cleans up the commendation ruleset.
41+
~RuleCommendations();
42+
/// Loads the unit data from YAML.
43+
void load(const YAML::Node& node, int listIndex);
44+
/// Get list order.
45+
int getListOrder() const;
46+
/// Get commendation name
47+
std::string getName() const;
48+
/// Get commendation description
49+
std::string getDescription() const;
50+
/// Get commendation award criteria
51+
std::map<std::string, std::vector<int> > getCriteria() const;
52+
};
53+
54+
}
55+
56+
#endif

0 commit comments

Comments
 (0)