public House(Point start, Point middle) { Start = start; Middle = middle; Rectangle = MyRectangle.GetMyRectangle(Start, Middle); Roof = MyTriangle.GetMyTriangle(Rectangle); Width = Rectangle.Width; Height = Rectangle.Height + Roof.Height; }
public House(Point mouseLocation) { Middle = mouseLocation; Rectangle = MyRectangle.GetMyRectangle(Middle); Roof = MyTriangle.GetMyTriangle(Rectangle); Start = Rectangle.Start; Width = Rectangle.Width; Height = Rectangle.Height + Roof.Height; }