/// <summary> /// 下一莊 /// </summary> /// <param name="flow">是否流局</param> public void nextWiner(bool flow) { // 如果流局或莊家贏 if (flow || this.lo.Winer == this.State) { this.win_Times++; } else { this.lo.next(); this.win_Times = 1; } //設定新的開牌位置 this.lo.setPosition(); //新的桌面 this.table = new BrandPlayer(); //更新莊家 this.state = (uint)lo.Winer; //設定牌組 for (int i = 0; i < countplayers; i++) { teamCount[i] = 1; } //打牌次數 this.brand_count = 0; //清除打出去的牌 Show_Table.clear(); }
/// <summary> /// 槓 /// </summary> /// <param name="brand">要槓的牌</param> /// <param name="player">可以槓的牌組</param> public void kong(Brand brand, BrandPlayer player) { Show_Table.remove(brand); set_Team(player, true); }