public void Emote(List <string> words)
        {
            string joinedWords = String.Join(" ", words);

            InputControl.MouseClick(locator.FriendlyPortrait(), "right");
            Thread.Sleep(250);
            InputControl.MouseClick(locator.Emote(joinedWords));
        }
 public void OpposingPortrait(List <string> words)
 {
     int[] destCoords = locator.OpposingPortrait();
     Thread.Sleep(ClickDelay);
     InputControl.SetCursorPosition(destCoords[0], 570);
     Thread.Sleep(ClickDelay);
     InputControl.MouseClick(destCoords);
 }
 public void Mulligan(List <string> words)
 {
     words.RemoveAt(0);
     foreach (string word in words)
     {
         Thread.Sleep(ClickDelay);
         InputControl.MouseClick(locator.Mulligan(word));
     }
 }
        private void BoardAction(List <string> words, Func <int, int[]> func)
        {
            int pos = Int32.Parse(words[1]);

            int[] destCoords = func(pos);
            InputControl.SetCursorPosition(destCoords[0], 570);
            Thread.Sleep(ClickDelay);
            InputControl.MouseClick(destCoords, "left", ClickDelay);
        }
        public void OpenPack(List <string> words)
        {
            InputControl.TypeKeys(" ");
            Thread.Sleep(5000);
            List <int[]> points = locator.CardPacks().ToList();

            int[] doneButton = points.Last();
            points.RemoveAt(points.Count - 1);
            foreach (int[] cardPosition in points)
            {
                InputControl.MouseClick(cardPosition, "left", ClickDelay / 2);
            }
            Thread.Sleep(2500);
            InputControl.MouseClick(doneButton, "left", ClickDelay / 2);
        }
        public void RemoveCardInDeckList(List <string> words)
        {
            InputControl.MouseClick(locator.CardListDragStart());
            int num;

            if (words.Count == 2)
            {
                num = Int32.Parse(words[1]);
            }
            else
            {
                num = Int32.Parse(words[1] + words[2]);
            }
            Console.WriteLine(num);
            if (num < 22)
            {
                InputControl.MouseClick(locator.CardInDeckList(num));
            }
            else
            {
                InputControl.MouseClick(locator.CardListDragEnd());
                InputControl.MouseClick(locator.CardInDeckListBottom(num));
            }
        }
 public void ShopButton(List <string> words)
 {
     InputControl.MouseClick(locator.ShopButton());
 }
 public void CraftingButton(List <string> words)
 {
     InputControl.MouseClick(locator.CraftingButton());
 }
 public void OpenPacksButton(List <string> words)
 {
     InputControl.MouseClick(locator.OpenPacksButton());
 }
 public void CreateCard(List <string> words)
 {
     InputControl.MouseClick(locator.CreateCard());
 }
 public void CancelDisenchant(List <string> words)
 {
     InputControl.MouseClick(locator.CancelDisenchant());
 }
 public void ChooseDeck(List <string> words)
 {
     InputControl.MouseClick(locator.Deck(Int32.Parse(words[1])));
 }
 public void DisenchantCard(List <string> words)
 {
     InputControl.MouseClick(locator.DisenchantCard());
 }
 public void PlayGame(List <string> words)
 {
     InputControl.MouseClick(locator.PlayButton());
 }
 public void GoBack(List <string> words)
 {
     InputControl.MouseClick(locator.BackButton());
 }
 public void FlipBack(List <string> words)
 {
     InputControl.MouseClick(locator.FlipBack());
 }
 public void ScrollCardListDown(List <string> words)
 {
     InputControl.MouseClick(locator.CardListDragEnd());
 }
 public void CardBookTabs(List <string> words)
 {
     InputControl.MouseClick(locator.CardBookTabs(Int32.Parse(words[1])));
 }
 public void FilterByMana(List <string> words)
 {
     InputControl.MouseClick(locator.ManaButton(Int32.Parse(words[1])));
 }
 public void ConstructCard(List <string> words)
 {
     InputControl.MouseClick(locator.ConstructCard(Int32.Parse(words[1])));
 }
 public void BuyArenaAdmission(List <string> words)
 {
     InputControl.MouseClick(locator.GoldArenaAdmission());
 }
 public void GameCancel(List <string> words)
 {
     InputControl.MouseClick(locator.GameCancelButton());
 }
 public void ArenaPlayButton(List <string> words)
 {
     InputControl.MouseClick(locator.ArenaPlayButton());
 }
 public void SelectBuildDeck(List <string> words)
 {
     InputControl.MouseClick(locator.SelectBuildDeck(Int32.Parse(words[1])));
 }
 public void ScrollCardListUp(List <string> words)
 {
     InputControl.MouseClick(locator.CardListDragStart());
 }
 public void TavernBrawlButton(List <string> words)
 {
     InputControl.MouseClick(locator.TavernBrawlButton());
 }
 public void SoloAdventures(List <string> words)
 {
     InputControl.MouseClick(locator.SoloAdventuresButton());
 }
 public void ShowOnlyGoldenCards(List <string> words)
 {
     Console.WriteLine("fll");
     InputControl.MouseClick(locator.ShowOnlyGoldenCards());
 }
 public void EndTurn(List <string> words)
 {
     InputControl.MouseClick(locator.EndTurnButton());
 }
 public void IncludeUncraftableCards(List <string> words)
 {
     InputControl.MouseClick(locator.IncludeUncraftableCards());
 }