![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
ArticleDefinition is the base class for all article types. More...
#include <ArticleDefinition.h>
Public Member Functions | |
| virtual | ~ArticleDefinition () |
| Destructor. | |
| UfopaediaTypeId | getType () const |
| Gets the type of article definition. More... | |
| virtual void | load (const YAML::Node &node, int listOrder) |
| Loads the article from YAML. More... | |
| int | getListOrder () const |
| Gets the article's list weight. More... | |
Protected Member Functions | |
| ArticleDefinition (UfopaediaTypeId type_id) | |
| Constructor (protected, so this class cannot be instantiated directly). More... | |
ArticleDefinition is the base class for all article types.
This class is used to store all information about articles required to generate an ArticleState from.
|
protected |
Constructor (protected, so this class cannot be instantiated directly).
Constructor.
| type_id | Article type of this instance. |
| int OpenXcom::ArticleDefinition::getListOrder | ( | ) | const |
Gets the article's list weight.
Gets the list weight of the article.
| UfopaediaTypeId OpenXcom::ArticleDefinition::getType | ( | ) | const |
|
virtual |
Loads the article from YAML.
Loads the article definition from a YAML file.
| node | YAML node. |
| listOrder | The list weight for this article. |
Reimplemented in OpenXcom::ArticleDefinitionVehicle, OpenXcom::ArticleDefinitionArmor, OpenXcom::ArticleDefinitionUfo, OpenXcom::ArticleDefinitionItem, OpenXcom::ArticleDefinitionBaseFacility, OpenXcom::ArticleDefinitionTFTD, OpenXcom::ArticleDefinitionTextImage, OpenXcom::ArticleDefinitionText, OpenXcom::ArticleDefinitionCraftWeapon, and OpenXcom::ArticleDefinitionCraft.
1.8.14