示例#1
0
 public override void OnWin(WinEvent evnt)
 {
     TurnRight(180);
     Ahead(10);
     TurnLeft(180);
     Ahead(-10);
     Out.WriteLine("Gane lero lero :P");
 }
示例#2
0
 public override void OnWin(WinEvent e)
 {
     for (int i = 0; i < 10; i++)
     {
         TurnRight(30);
         TurnLeft(30);
         Fire(Rules.MAX_BULLET_POWER);
     }
 }
示例#3
0
 public void OnWinBehavior(WinEvent evnt)
 {
     Robot.TurnLeft(25);
     for (int i = 0; i < 10; i++)
     {
         Robot.TurnRight(50);
         Robot.TurnLeft(50);
     }
     Console.WriteLine("All your bots are belong to us");
 }
示例#4
0
 public override void OnWin(WinEvent e)
 {
     Out.WriteLine("Win!");
 }
示例#5
0
 public void OnWin(WinEvent evnt)
 {
 }
示例#6
0
 /// <summary>
 ///   onWin:  Do a victory dance
 /// </summary>
 public override void OnWin(WinEvent e)
 {
     for (int i = 0; i < 50; i++)
     {
         TurnRight(30);
         TurnLeft(30);
     }
 }
示例#7
0
 /// <inheritdoc />
 public virtual void OnWin(WinEvent evnt)
 {
 }
示例#8
0
 public void OnWin(WinEvent evnt)
 {
 }
示例#9
0
 public void OnWinBehavior(WinEvent evnt)
 {
     //The Sprinkler
     for (var j = 5; j < 1000; j++)
     {
         Robot.TurnLeft(j);
         Robot.TurnRight(j * 1.5);
     }
 }
示例#10
0
 public override void OnWin(WinEvent e)
 {
     // Victory dance
     TurnRight(36000);
 }
示例#11
0
        public void OnWin(WinEvent evnt)
        {
            count(evnt);

            // this is tested output
            foreach (KeyValuePair<string, object> s in counts)
            {
                Out.WriteLine(s.Key + " " + s.Value);
            }

            Out.WriteLine("last bullet heading " + bullet.HeadingRadians.ToString("F5"));
        }
示例#12
0
 public override void OnWin(WinEvent evnt)
 {
     RobotBehavior.OnWinBehavior(evnt);
 }
 public override void OnWin(WinEvent evnt)
 {
     PrintStats();
 }
示例#14
0
文件: RoboMom.cs 项目: mokhan/irobot
 public override void OnWin(WinEvent evnt)
 {
     publisher.publish(evnt);
 }
示例#15
0
 public void OnWinBehavior(WinEvent evnt)
 {
     //throw new NotImplementedException();
 }
示例#16
0
 public void OnWinBehavior(WinEvent evnt)
 {
     Robot.TurnGunLeft(double.MaxValue);
     Console.WriteLine("All your bots are belong to us");
 }