if value #x_pos = #enemy_x then goto same_x_ #cur_head:

If the enemy's x-coordinate is equal to your x-coordinate, then the two of you must be on the same axis. i.e. there is a potential direct line-of-fire between you and the enemy. When Torque detects that the enemy has the same x-coordinate as itself, then he jumps to a routine which depends on Torque's current heading.

If the enemy is to the side of Torque, then this routine determines whether it would be safer to:

Alternatively, if the enemy is either in front of or behind Torque, then he will: