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)
def get_unit_in_focus(self): units = freeciv.func.get_units_in_focus() if units: return actions.Unit(units[0]) else: return None
def get_units(self): return [ actions.Unit(unit) for unit in freeciv.func.get_units_present_in_city(self.handle) ]
def get_supported_units(self): return [ actions.Unit(unit) for unit in freeciv.func.get_units_supported_by_city(self.handle) ]
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))
def popup_pillage_dialog(unit, act_list): client.client.popup_pillage_dialog(actions.Unit(unit), act_list)