Beispiel #1
0
 public Circle(Point position, int radius, ColorInterface color, Movement movement) : base(color)
 {
     Position         = position;
     Radius           = radius;
     Color            = color;
     MovementStrategy = movement;
 }
Beispiel #2
0
 public Rectangle(Point position, int width, int height, ColorInterface color, Movement movement) : base(color)
 {
     Position         = position;
     Width            = width;
     Height           = height;
     Color            = color;
     MovementStrategy = movement;
 }
Beispiel #3
0
 public Shape(ColorInterface c)
 {
     this.Color = c;
 }