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++;
         }
     }
 }
Beispiel #2
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());
 }