コード例 #1
0
 public Ball(int x, int y, int r, BallEnvironment e)
 {
     this.posx   = x;
     this.posy   = y;
     this.radius = r;
     this.color  = "#fafafa";
     this.parent = e;
 }
コード例 #2
0
 public RedBall(int x, int y, int r, BallEnvironment e) : base(x, y, r, e)
 {
     this.color  = "#AA3939";
     this.radius = 3;
 }