public void UpdateWorldMapDisplay()
 {
     DrawBalls();
     DrawTeam();
     PolygonSeries.RedrawAll();
     RobotGhostSeries.RedrawAll();
     RobotShapesSeries.RedrawAll();
     ObjectsPolygonSeries.RedrawAll();
     BallPolygon.RedrawAll();
 }
示例#2
0
 private void TimerAffichage_Tick(object sender, EventArgs e)
 {
     DrawBall();
     DrawRobot();
     DrawGhost();
     DrawLidar();
     PolygonSeries.RedrawAll();
     ObjectsPolygonSeries.RedrawAll();
     BallPolygon.RedrawAll();
 }
示例#3
0
 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++;
         }
     }
 }
示例#5
0
 public void DrawBall()
 {
     //Affichage de la balle
     BallPolygon.AddOrUpdatePolygonExtended((int)BallId.Ball, Balle.GetBallPolygon());
     BallPolygon.AddOrUpdatePolygonExtended((int)BallId.Ball + (int)Caracteristique.Speed, Balle.GetBallSpeedArrow());
 }