📄 flowchart.cpp
字号:
#include "stdafx.h"
#include "FlowChart.h"
#include "StateObject.h"
#include "StateMap.h"
CFlowChart::CFlowChart(void)
{
}
CFlowChart::~CFlowChart(void)
{
}
void CFlowChart::tick()
{
if( m_pCurrentState && m_bIsStarted)
{
string strNewStateName = "";
do
{
m_pCurrentState->tick();
strNewStateName = m_pCurrentState->CheckTransition();
if( !strNewStateName.empty() )
{
SetCurrentState(m_pStateMap->LookUp(strNewStateName));
}
}
while ( !strNewStateName.empty() );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -