Exemple #1
0
 public FigureData(Velocity velocity, bool isMoved, Color borderColor, Rectangle area, FigureType type)
 {
     Velocity = velocity;
     IsMoved = isMoved;
     Area = area;
     BorderColor = borderColor;
     Type = type;
 }
Exemple #2
0
 public Figure(FigureData data)
 {
     figureArea = data.Area;
     isMoved = data.IsMoved;
     velocity = data.Velocity;
     borderColor = data.BorderColor;
 }
Exemple #3
0
 public Figure(Point position, Color borderColor, int velocity)
 {
     figureArea = new Rectangle(position.X, position.Y, 1, 1);
     this.borderColor = borderColor;
     this.velocity = new Velocity(velocity);
     isMoved = true;
 }