Example #1
0
 public GamePlayer(Player player, Hero hero, GameDeck deck)
 {
     Player              = player;
     Hero                = hero;
     HasChangedHand      = false;
     RemainedManaCrystal = 0;
     ManaCrystal         = 0;
     Deck                = deck;
     EventManager        = new GamePlayerEventManager(this);
 }
Example #2
0
        public GameDeck CreateGameDeck(int gameDeckID, Deck deck)
        {
            List <int> cardRecordIDs = new List <int>();

            foreach (Card card in deck.Cards)
            {
                cardRecordIDs.Add(GameCardManager.CreateCardRecord(card).CardRecordID);
            }
            GameDeck gameDeck = new GameDeck(gameDeckID, cardRecordIDs);

            gameDeck.Shuffle(100);
            return(gameDeck);
        }