本文整理汇总了C++中Condition::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ Condition::getName方法的具体用法?C++ Condition::getName怎么用?C++ Condition::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Condition
的用法示例。
在下文中一共展示了Condition::getName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: visit
void TrigXmlVisitor::visit(Condition& c)
{
_ss << "\t<condition>" << NEWLINE;
_ss << "\t\t<type>" << c.getName().c_str() << "</type>" << NEWLINE;
writeXmlLong(&_ss, "amount", c.amount);
writeXmlLong(&_ss, "resource", c.res_type);
writeXmlLong(&_ss, "unit_object", c.object);
writeXmlLong(&_ss, "unit_location", c.u_loc);
if (c.pUnit)
writeXmlLong(&_ss, "unit_type", c.pUnit->id());
writeXmlLong(&_ss, "player", c.player);
if (c.pTech)
writeXmlLong(&_ss, "technology", c.pTech->id());
writeXmlLong(&_ss, "timer", c.timer);
writeXml(&_ss, "area", c.area);
writeXmlLong(&_ss, "unit_group", c.group);
writeXmlLong(&_ss, "building_type", c.utype);
writeXmlLong(&_ss, "ai_signal", c.ai_signal);
_ss << "\t</condition>" << NEWLINE;
}