sets heading towards the players location . concode_field_sep Random random concode_elem_sep Vector heading concode_elem_sep GameEngine gameEngine concode_elem_sep Enemy enemy concode_elem_sep double attackDelay concode_elem_sep double attackDelayFactor concode_elem_sep double lastTimeFired concode_elem_sep Actor target concode_field_sep void circleAroundTarget concode_elem_sep void createMovement concode_elem_sep void updateBehaviour concode_elem_sep void fireAtPlayer concode_elem_sep void approachTarget concode_elem_sep void setSpeeds
void function ( ) { heading = target . getPosition ( ) . copy ( ) . sub ( enemy . getPosition ( ) ) ; enemy . getHeading ( ) . set ( heading ) ; }