标题: 水中鱼代码 [打印本页] 作者: 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号球向上 往回";
}