public Ship(Location head, Axis axis, ShipType shipType) { var length = ShipUtils.GetShipLength(shipType); for (int index = 0; index < length; index++) { Body.Add(new ShipCell { Location = new Location { X = head.X + (axis == Axis.Vertical ? 0 : index), Y = head.Y + (axis == Axis.Horizontal ? 0 : index) } }); Axis = axis; } }