def game_click(coord): """Click on the provided coordinate (A tuple (x,y)) """ mouseclick(coord[0], coord[1]) time.sleep(0.5)
def go_to_play_mode_from_start(): mouseclick(coords_init[0], coords_init[1]) time.sleep(1) mouseclick(coords_play_button[0], coords_play_button[1]) time.sleep(5)
def ranked(): """Click the ranked button in play mode.""" mouseclick(888, 169)
def click_on_hero(): """Click the hero we want to use to play""" mouseclick(coords_hero_button[0], coords_hero_button[1])
def start_game(): """Starts a new game with our required hero. """ logger.info("Clicking play button") mouseclick(coords_play_final_button[0], coords_play_final_button[1])
def play_minion(num_cards_in_hand, card_idx): """Clicks in the center of the screen to play a minion. Can also be used to play spells without a target. """ click_on_card(num_cards_in_hand, card_idx) mouseclick(510, 472)