Exemplo n.º 1
0
 private void draw(MovingObject o)
 {
     b = new SolidBrush(o.getColor());
     g.FillEllipse(b, (float)(o.getLocation().X - o.getRadius() + margin), (float)(o.getLocation().Y - o.getRadius() + margin),
                   (float)(o.getRadius() * 2), (float)(o.getRadius() * 2));
     //g.DrawString(o.data.ToString(), new Font("Arial", 10), Brushes.White, o.getLocation());
 }
Exemplo n.º 2
0
 public PointF getBallLocation()
 {
     return(ball.getLocation());
 }