예제 #1
0
        /// <summary>
        /// On Practice state
        /// </summary>
        /// <param name="expert">if play in expert mode.</param>
        /// <returns>Seconds to be delayed before next call.</returns>
        private double OnRockPracticeMode(bool expert)
        {
            RockPegasusSubsceneState subscene = this.pegasus.GetPegasusSubsceneState(RockPegasusSceneState.AdventureScene);

            switch (subscene)
            {
            case RockPegasusSubsceneState.WaitForChooseMode:
                this.pegasus.ConfigPracticeMode(expert);
                return(1);

            case RockPegasusSubsceneState.WaitForChooseDeck:
                this.pegasus.ConfigDeck(this.configuration.DeckIndex);
                return(1);

            case RockPegasusSubsceneState.WaitForChooseOpponent:
                this.pegasus.ConfigPracticeOpponent(this.configuration.OpponentIndex);
                return(1);

            case RockPegasusSubsceneState.Ready:
                this.pegasus.PlayPracticeGame();
                return(1);

            default:
            case RockPegasusSubsceneState.None:
                return(0.5);
            }
        }
예제 #2
0
        /// <summary>
        /// On Tournament state
        /// </summary>
        /// <param name="ranked">if play in rank mode.</param>
        /// <param name="wild">if play in wild format.</param>
        /// <returns>Seconds to be delayed before next call.</returns>
        private double OnRockTournamentMode(bool ranked, bool wild)
        {
            RockPegasusSubsceneState subscene = this.pegasus.GetPegasusSubsceneState(RockPegasusSceneState.TournamentScene);

            switch (subscene)
            {
            case RockPegasusSubsceneState.Ready:
                this.pegasus.ConfigTournamentMode(ranked, wild);
                this.pegasus.PlayTournamentGame();
                return(1);

            default:
            case RockPegasusSubsceneState.WaitForChooseMode:
            case RockPegasusSubsceneState.WaitForChooseDeck:
            case RockPegasusSubsceneState.WaitForChooseOpponent:
            case RockPegasusSubsceneState.None:
                return(0.5);
            }
        }