Example #1
0
void Trigger::accept(TriggerVisitor& tv)
{
	tv.visit(*this);

	send_visitor sv(tv);
	std::for_each(effects.begin(), effects.end(), sv);
	std::for_each(conds.begin(), conds.end(), sv);

	tv.visitEnd(*this);
}
Example #2
0
void Condition::accept(TriggerVisitor& tv)
{
	tv.visit(*this);
}