Example #1
0
        public virtual void RecoverFreeSpin(Dictionary <string, string> dataList, int iBetAmount = 0)
        {
            m_Stage = STAGE.STAGE_FREESPIN;
            int      id           = int.Parse(dataList["SLOTID"]);
            SlotReel FreespinReel = m_SlotReels[id];

            if (dataList.ContainsKey("FGRS") && !string.IsNullOrEmpty(dataList["FGRS"].Trim()))
            {
                m_SpinResult = m_SlotReels[0].PlayGame(iBetAmount);
                int[] reelstops = StringUtility.StringToIntArray(dataList["FGRS"], ' ');
                FreespinReel.Recover(reelstops, iBetAmount);

                int iCurrentSpin = int.Parse(dataList["CURRENTSPIN"]);
                int iFSTotalWin  = int.Parse(dataList["FSTOTALWIN"]);
                int iTotalSpin   = int.Parse(dataList["TOTALSPIN"]);
                m_SpinResult.ClearTiggerLine();
                m_SpinResult.ReadyForSpin = true;
                m_SpinResult.setBonusId(0, 0, 0);
                m_SpinResult.FreePlay      = true;
                m_SpinResult.BaseWinAmount = int.Parse(dataList["BGWINAMOUNT"]);
                FreespinReel.RestoreFreeSpinProperties(iCurrentSpin, iTotalSpin, iFSTotalWin);
                m_SpinResult.FreeSpinProp = FreespinReel.getFreeSpinProperties();
            }
            else
            {
                m_bRecover = true;
                int[] reelstops = StringUtility.StringToIntArray(dataList["BGRS"], ' ');
                m_SlotReels[0].Recover(reelstops, iBetAmount);
                m_Stage = STAGE.STAGE_IDLE;
            }
        }
Example #2
0
        public virtual void RecoverBonusSpin(Dictionary <string, string> dataList, int iBetAmount = 0)
        {
            //m_Stage = STAGE.STAGE_BONUS;
            m_SpinResult.setBonus(true);
            int iBonusId = int.Parse(dataList["ENGINEBONUSID"]);

            Bonus bonusGame = getBonus(iBonusId);

            if (bonusGame != null)
            {
                // m_SpinResult = m_BaseSlot.PlayGame(iBetAmount);
                m_CurrentBonusGame = bonusGame;
                m_SpinResult.setBonusId(0, m_CurrentBonusGame.getBonusid(), 0);
                bonusGame.setBetLevel(iBetAmount);
                bonusGame.RecoverBonus(dataList, iBetAmount);
            }
        }