コード例 #1
0
ファイル: FillPhase.cs プロジェクト: Mitsugaru/CardLane
        public override GamePhase getNextPhase()
        {
            GamePhase next = null;

            if (PlayerHand.Count == 0 && OpponentHand.Count == 0)
            {
                next = new EndPhase();
            }
            else
            {
                next = new DrawPhase();
            }
            return(next);
        }
コード例 #2
0
ファイル: DrawPhase.cs プロジェクト: Mitsugaru/CardLane
        public override GamePhase getNextPhase()
        {
            GamePhase next = null;

            if (PlayerTurn)
            {
                next = new LaneSelectionPhase();
            }
            else
            {
                next = new AILaneSelectionPhase();
            }
            return(next);
        }
コード例 #3
0
        public override GamePhase getNextPhase()
        {
            GamePhase next = null;

            if (StockpileRule && resolution == 0)
            {
                //TODO stockpile draw phase
                next = new StockpileDrawPhase();
            }
            else
            {
                //TODO fill
                next = new FillPhase();
            }

            return(next);
        }