Beispiel #1
0
void ScriptNode::addAction( ActionPtr action )
{
	action->doAction();
	if( m_actionAccumulator && m_undoStateStack.top() == UndoContext::Enabled )
	{
		m_actionAccumulator->addAction( action );
		actionSignal()( this, action.get(), Action::Do );
	}
}
Beispiel #2
0
void Robot::DoAction() {
	ActionPtr act = GetCurrnetAction();
	if (act.get()) act->Do();
	Next();
	CommandProc();
}