private static void AddPop(RX_PopCardSet sender)
		{
			RX_PopCardSetManager.DefaultManager.PopList.Add(sender);
		}
Пример #2
0
	/// <summary>
	/// 洗牌函数
	/// </summary>
	public void Reshuffle()
	{
		this.popcardset = new RX_PopCardSet ();

		//shuffle the card
		List<RX_Card> list = RX_CardManager.DefaultManager().Reshuffle ();

		//创建底下的座位对象
		bottom_seat = new RX_SeatInfo(RX_SEAT_POSITION.RX_SEAT_BOTTOM,this.bottom_pool);
		bottom_seat.CardList = list.GetRange(0,17);

		//创建左边的座位对象
		left_seat = new RX_SeatInfo(RX_SEAT_POSITION.RX_SEAT_LEFT,this.left_pool);
		left_seat.CardList = list.GetRange (17, 17);

		//创建右边的座位对象
		right_seat = new RX_SeatInfo(RX_SEAT_POSITION.RX_SEAT_RIGHT,this.right_pool);
		right_seat.CardList = list.GetRange (34, 17);

		//创建上边的座位对象
		top_seat = new RX_SeatInfo(RX_SEAT_POSITION.RX_SEAT_TOP,this.top_pool);
		top_seat.CardList = list.GetRange (51, 3);

		seat = bottom_seat;
	}
		private static void SetNeedCreateCardSet()
		{
			RX_PopCardSet pop = RX_PopCardSetManager.Last();

			if (pop.ListCardSet.Count >= 2) 
			{
				RX_CardSet last_1 = pop.Last();
				RX_CardSet last_2 = pop.Last2();

				if (last_1.Typer == RX_CARD_SET.RX_TYPE_BUCHU && last_2.Typer == RX_CARD_SET.RX_TYPE_BUCHU) 
				{
					RX_PopCardSet pop_cardset = new RX_PopCardSet();
					RX_PopCardSetManager.AddPop(pop_cardset);
				}
			}
		}