Пример #1
0
        public void Setup()
        {
            player   = HearthEntityFactory.CreatePlayer <Warlock>();
            opponent = HearthEntityFactory.CreatePlayer <Warlock>();

            GameEngine.Initialize(player, opponent, null, 0, player);
        }
Пример #2
0
        public void Setup()
        {
            player   = HearthEntityFactory.CreatePlayer <Warlock>();
            opponent = HearthEntityFactory.CreatePlayer <Warlock>();

            GameEngine.Initialize(player, opponent);

            GameEngine.GameState.CurrentPlayer = player;
        }
Пример #3
0
        public void Setup()
        {
            player   = HearthEntityFactory.CreatePlayer <Warlock>();
            opponent = HearthEntityFactory.CreatePlayer <Warlock>();

            string zooLockDeckFile = Path.Combine(DeckTestDataPath, "ZooLock.txt");

            player.Deck   = Deck.FromDeckFile(zooLockDeckFile);
            opponent.Deck = Deck.FromDeckFile(zooLockDeckFile);

            GameEngine.Initialize(player, opponent);
            gameEnded             = false;
            gameResult            = null;
            GameEngine.GameEnded += OnGameEnded;
        }