Пример #1
0
def popup_caravan_dialog(unit, home_city, target_city, target_unit,
                         target_tile, act_list):
    client.client.popup_caravan_dialog(actions.Unit(unit),
                                       city.City(home_city),
                                       city.City(target_city),
                                       actions.Unit(target_unit), target_tile,
                                       act_list)
Пример #2
0
 def get_unit_in_focus(self):
     units = freeciv.func.get_units_in_focus()
     if units:
         return actions.Unit(units[0])
     else:
         return None
Пример #3
0
 def get_units(self):
     return [
         actions.Unit(unit)
         for unit in freeciv.func.get_units_present_in_city(self.handle)
     ]
Пример #4
0
 def get_supported_units(self):
     return [
         actions.Unit(unit)
         for unit in freeciv.func.get_units_supported_by_city(self.handle)
     ]
Пример #5
0
def popup_caravan_dialog(unit, home_city, dest_city):
    client.client.popup_caravan_dialog(actions.Unit(unit),
                                       city.City(home_city),
                                       city.City(dest_city))
Пример #6
0
def popup_pillage_dialog(unit, act_list):
    client.client.popup_pillage_dialog(actions.Unit(unit), act_list)