Beispiel #1
0
        private static GameState SummonMinnion(GameState gameState, SummonAction action, Minion minion = null)
        {
            var handManaUpdatedState = CardPlayUpdateHandMana(gameState, action.Card, action.Owner);

            return(gameState.With(handManaUpdatedState.Of(action.Owner)
                                  .With(minions: x => x.Insert(action.DesiredBoardPosition, minion ?? new Minion(action.Card)))));
        }
Beispiel #2
0
        public bool Equals(SummonAction action2)
        {
            if (action2 == null)
            {
                return(false);
            }

            return(Card == action2.Card && DesiredBoardPosition == action2.DesiredBoardPosition);
        }