示例#1
0
文件: Event.cpp 项目: pibomb/crowbot
void EventTriggerHandler::accept(EventData& event)
{
    if(event.validate(eventSequence.front()))
    {
        callback();
    }
}
示例#2
0
文件: Event.cpp 项目: pibomb/crowbot
void EventHandler::accept(EventData& event)
{
    if(!complete() && event.validate(eventSequence.front()))
    {
        eventSequence.pop();
        if(complete())
        {
            callback();
        }
    }
}