engine/XML/custom_maps/features/source/XMLAltarReader.cpp
// Read in the altar details from the XML, creating the altar as a
// FeaturePtr.
Read in the altar details from the XML, creating the altar as a
FeaturePtr.
Read in the altar details from the XML creating the altar as a FeaturePtr .
FeaturePtr XMLAltarReader::create(const XMLNode& altar_node) const
{
  string deity_id = XMLUtils::get_child_node_value(altar_node, "DeityID");
  AlignmentRange alignment = static_cast<AlignmentRange>(XMLUtils::get_child_node_int_value(altar_node, "Alignment", static_cast<int>(AlignmentRange::ALIGNMENT_RANGE_EVIL)));
  FeaturePtr altar = FeatureGenerator::generate_altar(deity_id, alignment);
  return altar;
}
FeaturePtr XMLAltarReader :: create ( const XMLNode & altar_node ) const { string deity_id = XMLUtils :: get_child_node_value ( altar_node , " " ) ; AlignmentRange alignment = static_cast < AlignmentRange > ( XMLUtils :: get_child_node_int_value ( altar_node , " " , static_cast < int > ( AlignmentRange :: ALIGNMENT_RANGE_EVIL ) ) ) ; FeaturePtr altar = FeatureGenerator :: generate_altar ( deity_id , alignment ) ; return altar ; }
Read in the altar details from the XML, creating the altar as a
FeaturePtr.
Read in the altar details from the XML creating the altar as a FeaturePtr .