예제 #1
0
        public Game(IDragonGameController dragonPlayer, ISlayerGameController slayerPlayer)
        {
            DragonDeck = new DragonDeck();
            SlayerDeck = new SlayerDeck();

            Dragon = new DragonPlayer(DragonDeck, dragonPlayer);
            Slayer = new SlayerPlayer(SlayerDeck, slayerPlayer);
            Slayer.RandomPresetParty();
        }
예제 #2
0
        public DragonPlayer(DragonDeck deck, IDragonGameController controller)
        {
            var g = (Dice.HalfChance() ? EGender.Male : EGender.Female);
            var n = (Dice.HalfChance() ? Dragon.Generate(g) : DragonBorn.Generate(g));

            Name = n;

            Deck      = deck;
            HitPoints = 10;
            Hand      = new List <BaseCard>();
        }