⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flowchart.cpp

📁 一个模拟动作源码
💻 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 + -