示例#1
0
        public void OnLocalWorldMapReceived(object sender, EventArgsLibrary.LocalWorldMapArgs e)
        {
            switch (sender.GetType().Name)
            {
            case "UDPMulticastInterpreter":
                if (e.LocalWorldMap.RobotId != RobotId)
                {
                    AddOrUpdateLocalWorldMap(e.LocalWorldMap);
                }
                else
                {
                    ;
                }
                break;

            case "LocalWorldMapManager":
                if (e.LocalWorldMap.RobotId == RobotId)
                {
                    AddOrUpdateLocalWorldMap(e.LocalWorldMap);
                }
                else
                {
                    Console.WriteLine("GlobalWorldMapManager : ceci ne devrait pas arriver");
                }
                ;
                break;

            default:
                AddOrUpdateLocalWorldMap(e.LocalWorldMap);
                break;
            }
        }
示例#2
0
 public void OnLocalWorldMapWayPointEvent(object sender, EventArgsLibrary.LocalWorldMapArgs e)
 {
     //throw new NotImplementedException();
     worldMapDisplayWaypoint.UpdateLocalWorldMap(e.LocalWorldMap);
     //Dispatcher.BeginInvoke(new Action(delegate ()
     //{
     //    worldMapDisplayWaypoint.UpdateWorldMapDisplay();
     //}));
 }
示例#3
0
 public void OnLocalWorldMapEvent(object sender, EventArgsLibrary.LocalWorldMapArgs e)
 {
     //throw new NotImplementedException();
     worldMapDisplay.UpdateLocalWorldMap(e.RobotId, e.LocalWorldMap);
 }
 public void OnLocalWorldMapReceived(object sender, EventArgsLibrary.LocalWorldMapArgs e)
 {
     AddOrUpdateLocalWorldMap(e.RobotId, e.TeamId, e.LocalWorldMap);
 }