Exemplo n.º 1
0
 def do_work(self):
     if ImageCoordinate.is_on_screen('images/help_others'):
         coord = ImageCoordinate.coords('images/help_others')
         clicker.move_to(coord)
         clicker.repeat_click(5, -20, 40)
         print('Helped alliance members')
     else:
         print('Alliance members do not need any help')
     self.next()
Exemplo n.º 2
0
 def do_work(self):
     sleep(2)
     if ImageCoordinate.is_on_screen('images/ask_help_button'):
         coord = ImageCoordinate.coords('images/ask_help_button')
         clicker.move_to(coord)
         clicker.repeat_click(5, -20, 40)
         print('Clicked on help request')
     else:
         print('Help is not required')
     self.next()
Exemplo n.º 3
0
 def do_work(self):
     if ImageCoordinate.is_on_screen('images/isHome'):
         print('You are at home')
         coord = ImageCoordinate.coords('images/isHome', shot=False)
         clicker.move_to(coord)
     else:
         coord = ImageCoordinate.coords('images/isOutside')
         clicker.move_click(coord)
         print('Going to home. Now, you are at home.')
     self.next()