Example #1
0
        private void Seat_PayedCard(object sender, EventArgs e)
        {
            var seat = (Seat)sender;

            seat.HandCards.FreshOptionors(Ruls.FreshOptions);
            TakonManager.RecieveTokenFrom(seat);
        }
Example #2
0
 public GameMajiangDaoDaoHu()
 {
     #region 初始化时每项游戏必须设置的属性
     ShowName         = "麻将倒倒胡";             //游戏名称,可根据游戏项目指定属性值
     Name             = this.GetType().Name; //反射调用名称(勿修改)
     PlayerCountLimit = 4;                   //人数上限,可根据游戏项目指定属性值
     PlayerCountLeast = 2;                   //人数下限,可根据游戏项目指定属性值
     #endregion
     #region 自定义初始化区域
     Ruls           = new DaoDaoHuRuls();
     CurrentStage   = Stage.Waiting;
     ChipInAmount   = 1;
     MaJiangManager = new MajiangDaoDaoHuManager();
     Seat managerSeat = GetSeatByPlayerId(InningeGame.IRoom.RoomManager.Id);
     SeatsManager                = new JoinSeatsManager(managerSeat);
     OptionorReuestManager       = new OptionorRequestCollection();
     TakonManager                = new TakonManager();
     TakonManager.RecievedToken += TakonManager_RecievedToken;
     #endregion
 }
Example #3
0
        /// <summary>
        /// 处理座位抛出令牌事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Seat_EjectionedToken(object sender, EventArgs e)
        {
            Seat seat = (Seat)sender;

            TakonManager.RecieveTokenFrom(seat);
        }