示例#1
0
        //IAI_Guess_DecisionType
        public void Play(BoardState board, PlayerBoardState playerState)
        {
            if (actionCard.BattlecryRequiresTarget())
            {
                List <ICard> possibleTargets = actionCard.GetBattlecryTargets();
                actionCard.SetBattlecryTarget(possibleTargets[random.Next(0, possibleTargets.Count)]);
            }

            Singletons.GetPrinter().PlayCard(playerState.playerSetup, actionCard, playerState.GetManaLeft(), actionCard.GetCost());
            playerState.SpendMana(actionCard);
            actionCard.PlayCard();

            board.statisticResult.GetCardPlaySequence(playerState.GetPlayerNr()).Add(((ITrackable)actionCard).GetTemplate());
        }
示例#2
0
        private void MakeDecision_CardPool_Hand(BoardState state)
        {
            List <ICard> options    = GetPlayer(state).GetValidHandOptions();
            ICard        actionCard = options[random.Next(0, options.Count)];

            if (actionCard.BattlecryRequiresTarget())
            {
                List <ICard> possibleTargets = actionCard.GetBattlecryTargets();
                actionCard.SetBattlecryTarget(possibleTargets[random.Next(0, possibleTargets.Count)]);
            }

            Singletons.GetPrinter().PlayCard(GetPlayer(state).playerSetup, actionCard, GetPlayer(state).GetManaLeft(), actionCard.GetCost());
            GetPlayer(state).SpendMana(actionCard);

            actionCard.PlayCard();
        }