当前位置: 首页>>代码示例>>C#>>正文


C# Agent.Set_Agent方法代码示例

本文整理汇总了C#中Agent.Set_Agent方法的典型用法代码示例。如果您正苦于以下问题:C# Agent.Set_Agent方法的具体用法?C# Agent.Set_Agent怎么用?C# Agent.Set_Agent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Agent的用法示例。


在下文中一共展示了Agent.Set_Agent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Start

	[UsedImplicitly] private void Start ()
	{
		Agent quick_agent = new Agent();
		quick_agent.Set_Agent(
			Agent_Simpletrain_Start,
			Agent_Simpletrain_Update,
			Agent_Simpletrain_End,
			Agent_Simpletrain_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "SIMPLETRAIN");
		
		quick_agent.Set_Agent(
			Agent_SchoolTrain_Start,
			Agent_SchoolTrain_Update,
			Agent_SchoolTrain_End,
			Agent_SchoolTrain_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "SCHOOLTRAIN");
		
		quick_agent.Set_Agent(
			Agent_TrainCarpenter_Start,
			Agent_TrainCarpenter_Update,
			Agent_TrainCarpenter_End,
			Agent_TrainCarpenter_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "TRAINCARPENTER");
		
		quick_agent.Set_Agent(
			Agent_TrainLumberjack_Start,
			Agent_TrainLumberjack_Update,
			Agent_TrainLumberjack_End,
			Agent_TrainLumberjack_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "TRAINLUMBERJACK");
		
		quick_agent.Set_Agent(
			Agent_TrainMiner_Start,
			Agent_TrainMiner_Update,
			Agent_TrainMiner_End,
			Agent_TrainMiner_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "TRAINMINER");
		
		quick_agent.Set_Agent(
			Agent_TrainBlacksmith_Start,
			Agent_TrainBlacksmith_Update,
			Agent_TrainBlacksmith_End,
			Agent_TrainBlacksmith_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "TRAINBLACKSMITH");
		
		quick_agent.Set_Agent(
			Agent_TrainTeacher_Start,
			Agent_TrainTeacher_Update,
			Agent_TrainTeacher_End,
			Agent_TrainTeacher_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "TRAINTEACHER");
		
		quick_agent.Set_Agent(
			Agent_TrainRifleman_Start,
			Agent_TrainRifleman_Update,
			Agent_TrainRifleman_End,
			Agent_TrainRifleman_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "TRAINRIFLEMAN");
		
		quick_agent.Set_Agent(
			Agent_Move_Start,
			Agent_Move_Update,
			Agent_Move_End,
			Agent_Move_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "MOVE");
		
		quick_agent.Set_Agent(
			Agent_CutTree_Start,
			Agent_CutTree_Update,
			Agent_CutTree_End,
			Agent_CutTree_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "CUTTREE");
		
		quick_agent.Set_Agent(
			Agent_SimpleMineOre_Start,
			Agent_SimpleMineOre_Update,
			Agent_SimpleMineOre_End,
			Agent_SimpleMineOre_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "SIMPLEMINEORE");
		
		quick_agent.Set_Agent(
			Agent_SimpleMineCoal_Start,
			Agent_SimpleMineCoal_Update,
			Agent_SimpleMineCoal_End,
			Agent_SimpleMineCoal_CompletedCheck
			);
		AgentMaster.Register_Agent_Type(quick_agent, "SIMPLEMINECOAL");
		
		quick_agent.Set_Agent(
//.........这里部分代码省略.........
开发者ID:DarkXenoShark,项目名称:AI-ICA2-RTS,代码行数:101,代码来源:AgentCommandCompilation.cs


注:本文中的Agent.Set_Agent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。