public List <Card> ManageCharactersOffToTheSide(bool banish = true)
        {
            List <Card> characterCards = new List <Card> {
            };

            foreach (string charID in roninIdentifiers)
            {
                Card target = TurnTaker.FindCard(charID);
                characterCards.Add(target);

                Location currentLoc = target.Location;

                if (currentLoc.IsOffToTheSide)
                {
                    Location destination;
                    //Log.Debug("Looking for destination...");
                    if (banish)
                    {
                        //Log.Debug("Attempting to banish...");
                        destination = TurnTaker.InTheBox;
                    }
                    else
                    {
                        //Log.Debug("Putting in play...");
                        destination = TurnTaker.PlayArea;
                    }
                    TurnTaker.MoveCard(target, destination);
                }
            }
            return(characterCards);
        }
示例#2
0
 private void SneakManageCharacters()
 {
     foreach (Card c in this.inPlay)
     {
         TurnTaker.MoveCard(c, TurnTaker.PlayArea);
     }
     foreach (Card c in this.inBox)
     {
         TurnTaker.MoveCard(c, TurnTaker.InTheBox);
     }
 }
示例#3
0
        public void HandleWintersEarly(bool banish = true)
        {
            Card winters = TurnTaker.FindCard("AdmiralWintersCharacter", true);

            if (winters == null || winters.Location != TurnTaker.OffToTheSide)
            {
                Log.Debug("Failed to find Admiral Winters");
                return;
            }

            Location targetLocation = banish ? TurnTaker.InTheBox : TurnTaker.PlayArea;

            TurnTaker.MoveCard(winters, targetLocation);
        }
        public List <Card> ManageCharactersOffToTheSide(bool banish = true)
        {
            List <Card> characterCards = new List <Card> {
            };

            foreach (string charID in nightloreCouncilIdentifiers)
            {
                Card target = TurnTaker.FindCard(charID);
                characterCards.Add(target);

                Location oldLocation = target.Location;
                Location destination;
                if (oldLocation.IsOffToTheSide)
                {
                    //Log.Debug("Looking for destination...");
                    if (banish)
                    {
                        //Log.Debug("Attempting to banish...");
                        destination = TurnTaker.InTheBox;
                    }
                    else
                    {
                        //Log.Debug("Putting in play...");
                        destination = TurnTaker.PlayArea;
                    }

                    TurnTaker.MoveCard(target, destination);

                    /*
                     * oldLocation.RemoveCard(target);
                     * destination.AddCard(target);
                     *
                     * if (target.Location.Name == LocationName.PlayArea && !GameController.Game.OrderedCardsInPlay.Contains(target))
                     * {
                     *  //Log.Debug("But the game does not know that it is in play");
                     *  GameController.Game.AssignPlayCardIndex(target);
                     *  //Log.Debug($"Given index {target.PlayIndex}");
                     * }
                     */
                }
            }
            return(characterCards);
        }