def end_turn( event ): for unit in all(): unit.end_turn()
def init(): default = { event.END_TURN: unit.end_turn( event ) } set_default( default )