標題: 水中魚代碼 [打印本頁] 作者: xlpx 時間: 2018-7-16 12:58 標題: 水中魚代碼 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using xna = Microsoft.Xna.Framework;
using Microsoft.Xna.Framework;
using URWPGSim2D.Common;
using URWPGSim2D.StrategyLoader;
using URWPGSim2D.Core;
namespace URWPGSim2D.Strategy
{
public class Strategy : MarshalByRefObject, IStrategy
{
#region reserved code never be changed or removed
/// <summary>
/// override the InitializeLifetimeService to return null instead of a valid ILease implementation
/// to ensure this type of remote object never dies
/// </summary>
/// <returns>null</returns>
public override object InitializeLifetimeService()
{
//return base.InitializeLifetimeService();
return null; // makes the object live indefinitely
}
#endregion
/// <summary>
/// 決策類當前對象對應的仿真使命參與隊伍的決策數組引用 第一次調用GetDecision時分配空間
/// </summary>
///
private Decision[] decisions = null;
/// <summary>
/// 獲取隊伍名稱 在此處設置參賽隊伍的名稱
/// </summary>
/// <returns>隊伍名稱字符串</returns>
public string GetTeamName()
{
return "懟2號球向上 往回";
}