Exemplo n.º 1
0
 public void DrawDebugIndicatorCircle(RobotController robotController, Location loc, DebugColor color)
 {
     DebugIndicatorCircles.Add(new Debug.DebugIndicatorCircle()
     {
         RobotController = robotController, Location = loc, Color = color
     });
 }
Exemplo n.º 2
0
 public void DrawDebugIndicatorText(RobotController robotController, Location loc, DebugColor color, string text)
 {
     DebugIndicatorTexts.Add(new Debug.DebugIndicatorText()
     {
         RobotController = robotController, Location = loc, Color = color, Text = text
     });
 }
Exemplo n.º 3
0
 public void DrawDebugIndicatorLine(RobotController robotController, Location locStart, Location locEnd, DebugColor color)
 {
     DebugIndicatorLines.Add(new Debug.DebugIndicatorLine()
     {
         RobotController = robotController, StartLocation = locStart, EndLocation = locEnd, Color = color
     });
 }
Exemplo n.º 4
0
 public IEnumerable <RadioMessage> ReceiveRadioMessages(RobotController rc)
 {
     return(RadioMessages.Where(x => x.RobotId != rc.Id).OrderBy(x => Rnd.Next()).ToList());
 }
Exemplo n.º 5
0
 public IEnumerable <RobotInfo> ScanForNearbyRobots(RobotController rc)
 {
     return(RobotControllers.Where(x => x != rc && x.Location.Distance(rc.Location) <= rc.RobotType.ScannerRange).Select(x => x.GetRobotInfo()).ToList());
 }