/// <summary> /// /// </summary> /// <param name="mDirect"></param> /// <param name="mRole"></param> /// <param name="mGame"></param> /// <param name="嘲讽限制"></param> public TargetSelect(CardUtility.TargetSelectDirectEnum mDirect, CardUtility.TargetSelectRoleEnum mRole, GameManager mGame, Boolean m嘲讽限制) { InitializeComponent(); direct = mDirect; role = mRole; game = mGame; 嘲讽限制 = m嘲讽限制; }
/// <summary> /// 选择目标 /// </summary> /// <returns></returns> private CardUtility.TargetPosition SelectPanel(Card.CardUtility.TargetSelectDirectEnum direct, Card.CardUtility.TargetSelectRoleEnum role, Boolean 嘲讽限制) { CardUtility.TargetPosition SelectPos; var frm = new TargetSelect(direct, role, game, 嘲讽限制); frm.ShowDialog(); SelectPos = frm.pos; return(SelectPos); }