![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Public Member Functions | |
RuleInterface (const std::string &type) | |
Constructor. More... | |
~RuleInterface () | |
Destructor. | |
void | load (const YAML::Node &node) |
Load from YAML. More... | |
Element * | getElement (const std::string &id) |
Get an element. More... | |
const std::string & | getPalette () const |
Get palette. | |
const std::string & | getParent () const |
Get parent interface rule. | |
const std::string & | getMusic () const |
Get music. | |
OpenXcom::RuleInterface::RuleInterface | ( | const std::string & | type | ) |
Constructor.
Creates a blank ruleset for a certain type of interface, containing an index of elements that make it up.
type | String defining the type. |
Element * OpenXcom::RuleInterface::getElement | ( | const std::string & | id | ) |
Get an element.
Retrieves info on an element.
id | String defining the element. |
void OpenXcom::RuleInterface::load | ( | const YAML::Node & | node | ) |
Load from YAML.
Loads the elements from a YAML file.
node | YAML node. |