OpenXcom  1.0
Open-source clone of the original X-Com
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
MCDPatch.h
1 /*
2  * Copyright 2010-2014 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_MCDPATCH_H
20 #define OPENXCOM_MCDPATCH_H
21 
22 #include <string>
23 #include <yaml-cpp/yaml.h>
24 
25 namespace OpenXcom
26 {
27 class MapDataSet;
31 class MCDPatch
32 {
33 private:
34  std::vector<std::pair<size_t, int> > _bigWalls, _TUWalks, _TUFlys, _TUSlides, _deathTiles, _terrainHeight, _specialTypes, _armors, _explosives, _flammabilities, _fuels, _HEBlocks;
35  std::vector<std::pair<size_t, bool> > _noFloors;
36  std::vector<std::pair<size_t, std::vector<int> > > _LOFTS;
37 public:
39  MCDPatch();
41  ~MCDPatch();
43  void load(const YAML::Node& node);
45  void modifyData(MapDataSet *dataSet) const;
46 };
47 
48 }
49 
50 #endif
void modifyData(MapDataSet *dataSet) const
Applies an MCD patch to a mapDataSet.
Definition: MCDPatch.cpp:128
MCDPatch()
Creates an MCD Patch.
Definition: MCDPatch.cpp:29
~MCDPatch()
Cleans up the MCD Patch.
Definition: MCDPatch.cpp:36
void load(const YAML::Node &node)
Loads the MCD Patch from YAML.
Definition: MCDPatch.cpp:45
An MCD data Patch.
Definition: MCDPatch.h:31
Represents a Terrain Map Datafile.
Definition: MapDataSet.h:40