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; } }
public void OnLocalWorldMapWayPointEvent(object sender, EventArgsLibrary.LocalWorldMapArgs e) { //throw new NotImplementedException(); worldMapDisplayWaypoint.UpdateLocalWorldMap(e.LocalWorldMap); //Dispatcher.BeginInvoke(new Action(delegate () //{ // worldMapDisplayWaypoint.UpdateWorldMapDisplay(); //})); }
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); }