Esempio n. 1
0
        public static void CreateBaseDeck(Player player)
        {
            List <Card> deck = new List <Card>()
            {
                CardLibrary.CreateLeader(),
                        CardLibrary.CreateWarrior(),
                        CardLibrary.CreateBerserker(),
                        CardLibrary.CreateHealer(),
                        CardLibrary.CreateKnight(),
                        CardLibrary.CreateSpearman(),
                        CardLibrary.CreatePreacher(),
                        CardLibrary.CreateLeeroyJenkins(),
                        CardLibrary.CreateSoulReaper(),
                        CardLibrary.CreateGuardsman(),
                        CardLibrary.CreateRider(),
                        CardLibrary.CreateSkeleton(),
                        CardLibrary.CreateGhoul(),

                        CardLibrary.CreateFireball(),
                        CardLibrary.CreateShovel(),
                        CardLibrary.CreateGrace(),
            };

            foreach (Card card in deck)
            {
                card.Owner = player;
            }

            player.Deck = deck;
        }