def do_action(action): if action in simple_actions: diplomat_action.perform_simple_action(action) elif action == freeciv.const.DIPLOMAT_SABOTAGE: # TODO: spy can choose building diplomat_action.perform_simple_action(action, value=freeciv.const.B_LAST + 1) elif action == freeciv.const.DIPLOMAT_STEAL: # TODO: spy can choose technology diplomat_action.perform_simple_action(action, value=freeciv.const.A_UNSET) elif action == freeciv.const.DIPLOMAT_INCITE: diplomat_action.request_answer(action) else: ui.not_implemented()
def do_action(action): if action in simple_actions: diplomat_action.perform_simple_action(action) elif action == freeciv.const.DIPLOMAT_SABOTAGE: # TODO: spy can choose building diplomat_action.perform_simple_action(action, value=freeciv.const.B_LAST+1) elif action == freeciv.const.DIPLOMAT_STEAL: # TODO: spy can choose technology diplomat_action.perform_simple_action(action, value=freeciv.const.A_UNSET) elif action == freeciv.const.DIPLOMAT_INCITE: diplomat_action.request_answer(action) else: ui.not_implemented()
def add_condition(self): ui.not_implemented()