public void UpdateWorldMapDisplay() { DrawBalls(); DrawTeam(); PolygonSeries.RedrawAll(); RobotGhostSeries.RedrawAll(); RobotShapesSeries.RedrawAll(); ObjectsPolygonSeries.RedrawAll(); BallPolygon.RedrawAll(); }
private void TimerAffichage_Tick(object sender, EventArgs e) { DrawBall(); DrawRobot(); DrawGhost(); DrawLidar(); PolygonSeries.RedrawAll(); ObjectsPolygonSeries.RedrawAll(); BallPolygon.RedrawAll(); }
private void TimerAffichage_Tick(object sender, EventArgs e) { DrawBall(); DrawTeam(); if (TeamMatesDisplayDictionary.Count == 1) //Cas d'un affichage de robot unique (localWorldMap) { DrawHeatMap(TeamMatesDisplayDictionary.First().Key); } PolygonSeries.RedrawAll(); BallPolygon.RedrawAll(); }
public void DrawBalls() { lock (BallDisplayList) { int indexBall = 0; foreach (var ball in BallDisplayList) { //Affichage de la balle BallPolygon.AddOrUpdatePolygonExtended((int)BallId.Ball + indexBall, ball.GetBallPolygon()); BallPolygon.AddOrUpdatePolygonExtended((int)BallId.Ball + indexBall + (int)Caracteristique.Speed, ball.GetBallSpeedArrow()); indexBall++; } } }
public void DrawBall() { //Affichage de la balle BallPolygon.AddOrUpdatePolygonExtended((int)BallId.Ball, Balle.GetBallPolygon()); BallPolygon.AddOrUpdatePolygonExtended((int)BallId.Ball + (int)Caracteristique.Speed, Balle.GetBallSpeedArrow()); }