Esempio n. 1
0
def game_click(coord):
    """Click on the provided coordinate (A tuple (x,y))
    """
    mouseclick(coord[0], coord[1])
    time.sleep(0.5)
Esempio n. 2
0
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)
Esempio n. 3
0
def ranked():
    """Click the ranked button in play mode."""
    mouseclick(888, 169)
Esempio n. 4
0
def click_on_hero():
    """Click the hero we want to use to play"""
    mouseclick(coords_hero_button[0], coords_hero_button[1])
Esempio n. 5
0
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])
Esempio n. 6
0
def game_click(coord):
    """Click on the provided coordinate (A tuple (x,y))
    """
    mouseclick(coord[0], coord[1])
    time.sleep(0.5)
Esempio n. 7
0
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)
Esempio n. 8
0
def ranked():
    """Click the ranked button in play mode."""
    mouseclick(888, 169)
Esempio n. 9
0
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)
Esempio n. 10
0
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])
Esempio n. 11
0
def click_on_hero():
    """Click the hero we want to use to play"""
    mouseclick(coords_hero_button[0], coords_hero_button[1])
Esempio n. 12
0
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)