arsregistaction.cpp

来自「多机器人目标围捕 用MFC自行设计了简单的机器人围捕场景。机器人策略采用注」· C++ 代码 · 共 14 行

CPP
14
字号
#include "StdAfx.h"
#include "ARSAction.h"
#include "ARSPoliceDirect.h"
#include "ARSThiefRandom.h"
#include "ARSPlField.h"
#include "ARSThStill.h"

void RigestActions()//避免编译顺序问题造成的错误
{
	bool bThiefRandom = ARSAction::RegistOneAction(THIEF_RANDOM,ARSThRandom::CreateAction);
	bool bPoliceField = ARSAction::RegistOneAction(POLICE_FIELD,ARSPlField::CreateAction);
	bool bThiefStill = ARSAction::RegistOneAction(THIEF_STILL,ARSThStill::CreateAction);

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?