OpenXcom  1.0
Open-source clone of the original X-Com
Public Member Functions | List of all members
OpenXcom::RuleInterface Class Reference

Public Member Functions

 RuleInterface (const std::string &type)
 Constructor. More...
 
 ~RuleInterface ()
 Destructor.
 
void load (const YAML::Node &node)
 Load from YAML. More...
 
ElementgetElement (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.
 

Constructor & Destructor Documentation

◆ RuleInterface()

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.

Parameters
typeString defining the type.

Member Function Documentation

◆ getElement()

Element * OpenXcom::RuleInterface::getElement ( const std::string &  id)

Get an element.

Retrieves info on an element.

Parameters
idString defining the element.

◆ load()

void OpenXcom::RuleInterface::load ( const YAML::Node &  node)

Load from YAML.

Loads the elements from a YAML file.

Parameters
nodeYAML node.

The documentation for this class was generated from the following files: