20 #ifndef OPENXCOM_ARTICLEDEFINITION_H
21 #define OPENXCOM_ARTICLEDEFINITION_H
25 #include <yaml-cpp/yaml.h>
31 UFOPAEDIA_TYPE_UNKNOWN = 0,
32 UFOPAEDIA_TYPE_CRAFT = 1,
33 UFOPAEDIA_TYPE_CRAFT_WEAPON = 2,
34 UFOPAEDIA_TYPE_VEHICLE = 3,
35 UFOPAEDIA_TYPE_ITEM = 4,
36 UFOPAEDIA_TYPE_ARMOR = 5,
37 UFOPAEDIA_TYPE_BASE_FACILITY = 6,
38 UFOPAEDIA_TYPE_TEXTIMAGE = 7,
39 UFOPAEDIA_TYPE_TEXT = 8,
40 UFOPAEDIA_TYPE_UFO = 9
61 virtual void load(
const YAML::Node& node,
int listOrder);
68 std::vector<std::string> requires;
81 void set(
int set_x,
int set_y,
int set_width,
int set_height);
100 void load(
const YAML::Node& node,
int listOrder);
102 std::string image_id;
119 void load(
const YAML::Node& node,
int listOrder);
121 std::string image_id;
135 void load(
const YAML::Node& node,
int listOrder);
151 void load(
const YAML::Node& node,
int listOrder);
153 std::string image_id;
169 void load(
const YAML::Node& node,
int listOrder);
185 void load(
const YAML::Node& node,
int listOrder);
201 void load(
const YAML::Node& node,
int listOrder);
217 void load(
const YAML::Node& node,
int listOrder);
233 void load(
const YAML::Node& node,
int listOrder);
ArticleDefinitionVehicle defines articles for Vehicles, e.g.
Definition: ArticleDefinition.h:227
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:209
ArticleDefinitionCraft()
Constructor.
Definition: ArticleDefinition.cpp:127
ArticleDefinitionCraftWeapon defines articles for craft weapons, e.g.
Definition: ArticleDefinition.h:113
ArticleDefinitionRect()
Constructor.
Definition: ArticleDefinition.cpp:107
ArticleDefinitionArmor()
Constructor.
Definition: ArticleDefinition.cpp:252
UfopaediaTypeId getType() const
Gets the type of article definition.
Definition: ArticleDefinition.cpp:71
ArticleDefinitionItem()
Constructor.
Definition: ArticleDefinition.cpp:218
ArticleDefinitionTextImage defines articles with text on the left and an image on the right side of t...
Definition: ArticleDefinition.h:145
ArticleDefinitionVehicle()
Constructor.
Definition: ArticleDefinition.cpp:269
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:155
virtual void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:81
ArticleDefinitionTextImage()
Constructor.
Definition: ArticleDefinition.cpp:182
ArticleDefinitionText()
Constructor.
Definition: ArticleDefinition.cpp:165
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:243
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:226
ArticleDefinitionUfo()
Constructor.
Definition: ArticleDefinition.cpp:235
int getListOrder() const
Gets the article's list weight.
Definition: ArticleDefinition.cpp:99
ArticleDefinitionItem defines articles for all Items, e.g.
Definition: ArticleDefinition.h:179
ArticleDefinition(UfopaediaTypeId type_id)
Constructor (protected, so this class cannot be instantiated directly).
Definition: ArticleDefinition.cpp:58
void set(int set_x, int set_y, int set_width, int set_height)
Sets the rectangle parameters in a function.
Definition: ArticleDefinition.cpp:116
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:190
UfopaediaTypeId
define article types
Definition: ArticleDefinition.h:30
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:260
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:173
ArticleDefinitionCraft defines articles for craft, e.g.
Definition: ArticleDefinition.h:94
ArticleDefinitionBaseFacility defines articles for base facilities, e.g.
Definition: ArticleDefinition.h:163
ArticleDefinitionArmor defines articles for Armor, e.g.
Definition: ArticleDefinition.h:211
Definition: ArticleDefinition.h:76
ArticleDefinition is the base class for all article types.
Definition: ArticleDefinition.h:49
virtual ~ArticleDefinition()
Destructor.
Definition: ArticleDefinition.cpp:64
ArticleDefinitionBaseFacility()
Constructor.
Definition: ArticleDefinition.cpp:201
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:135
ArticleDefinitionCraftWeapon()
Constructor.
Definition: ArticleDefinition.cpp:147
void load(const YAML::Node &node, int listOrder)
Loads the article from YAML.
Definition: ArticleDefinition.cpp:277
ArticleDefinitionText defines articles with only text, e.g.
Definition: ArticleDefinition.h:129
ArticleDefinitionUfo defines articles for UFOs, e.g.
Definition: ArticleDefinition.h:195