public NEATKeepawayPlayer(RoboCup.Stadium std, string team, int unum, string side, int numK, int numT) : base(std, team, unum, side, numK, numT) { this.numK = numK; this.numT = numT; this.std = std; this.team = team; this.side = side; this.unum = unum; }
public void OnStadiumUpdate(RoboCup.Stadium std) { this.std = std; DateTime now = DateTime.Now; speedup = 100.0 / (now - prev).TotalMilliseconds; prev = DateTime.Now; this.Invalidate(); }
public NEATKeepawayPlayer(RoboCup.Stadium std, string team, int unum, string side, int numK, int numT, IBlackBox box) : base(std, team, unum, side, numK, numT) { this.numK = numK; this.numT = numT; this.std = std; this.team = team; this.side = side; this.unum = unum; this.Brain = box; // to pass the brain controller to an agent with ball }