Example #1
0
 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;
 }
Example #2
0
        public void OnStadiumUpdate(RoboCup.Stadium std)
        {
            this.std = std;
            DateTime now = DateTime.Now;

            speedup = 100.0 / (now - prev).TotalMilliseconds;
            prev    = DateTime.Now;

            this.Invalidate();
        }
Example #3
0
 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
 }