當前位置: 首頁>>代碼示例>>C#>>正文


C# Agent.ToString方法代碼示例

本文整理匯總了C#中Agent.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# Agent.ToString方法的具體用法?C# Agent.ToString怎麽用?C# Agent.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Agent的用法示例。


在下文中一共展示了Agent.ToString方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Guarded

 /// <summary>
 /// Report guarded agent.
 /// </summary>
 /// <param name="target"></param>
 /// <returns></returns>
 public static string Guarded(Agent target)
 {
     string[] split = { Topic.GUARDED.ToString(), (target != null) ? target.ToString() : "null" };
     return WordAttachment(split);
 }
開發者ID:AIWolfSharp,項目名稱:AIWolfSharp,代碼行數:10,代碼來源:TemplateTalkFactory.cs

示例2: Inquested

 /// <summary>
 /// Report result of inquest.
 /// </summary>
 /// <param name="target"></param>
 /// <param name="species"></param>
 /// <returns></returns>
 public static string Inquested(Agent target, Species species)
 {
     string[] split = { Topic.INQUESTED.ToString(), (target != null) ? target.ToString() : "null", species.ToString() };
     return WordAttachment(split);
 }
開發者ID:AIWolfSharp,項目名稱:AIWolfSharp,代碼行數:11,代碼來源:TemplateTalkFactory.cs

示例3: Estimate

 /// <summary>
 /// Talk one's estimation.
 /// </summary>
 /// <param name="target"></param>
 /// <param name="role"></param>
 /// <returns></returns>
 public static string Estimate(Agent target, Role role)
 {
     string[] split = { Topic.ESTIMATE.ToString(), (target != null) ? target.ToString() : "null", role.ToString() };
     return WordAttachment(split);
 }
開發者ID:AIWolfSharp,項目名稱:AIWolfSharp,代碼行數:11,代碼來源:TemplateTalkFactory.cs

示例4: Divined

 /// <summary>
 /// Report result of divine.
 /// </summary>
 /// <param name="target"></param>
 /// <param name="species"></param>
 /// <returns></returns>
 public static string Divined(Agent target, Species species)
 {
     string[] split = { Topic.DIVINED.ToString(), (target != null) ? target.ToString() : "null", species.ToString() };
     return WordAttachment(split);
 }
開發者ID:AIWolfSharp,項目名稱:AIWolfSharp,代碼行數:11,代碼來源:TemplateTalkFactory.cs

示例5: Comingout

 /// <summary>
 /// Comingout someone's role.
 /// </summary>
 /// <param name="target"></param>
 /// <param name="role"></param>
 /// <returns></returns>
 public static string Comingout(Agent target, Role role)
 {
     string[] split = { Topic.COMINGOUT.ToString(), (target != null) ? target.ToString() : "null", role.ToString() };
     return WordAttachment(split);
 }
開發者ID:AIWolfSharp,項目名稱:AIWolfSharp,代碼行數:11,代碼來源:TemplateTalkFactory.cs

示例6: Vote

 /// <summary>
 /// Declare vote target.
 /// </summary>
 /// <param name="target"></param>
 /// <returns></returns>
 public static string Vote(Agent target)
 {
     string[] split = { Topic.VOTE.ToString(), (target != null) ? target.ToString() : "null" };
     return WordAttachment(split);
 }
開發者ID:AIWolfSharp,項目名稱:AIWolfSharp,代碼行數:10,代碼來源:TemplateTalkFactory.cs

示例7: Attack

 public static string Attack(Agent target)
 {
     string[] split = { Topic.ATTACK.ToString(), (target != null) ? target.ToString() : "null" };
     return WordAttachment(split);
 }
開發者ID:AIWolfSharp,項目名稱:AIWolfSharp,代碼行數:5,代碼來源:TemplateWhisperFactory.cs


注:本文中的Agent.ToString方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。