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()); }
public PointF getBallLocation() { return(ball.getLocation()); }