src/model/agent/Agent.java
private Action loiter() {
        targetAgent = context.getVictim();
        if (targetAgent != null) {
            route = context.getRouteToAgent(targetAgent);
            setState(AgentState.STALKING);
        } else if (wait <= 0) {
            setState(AgentState.THINKING);
        }
        return Action.WAIT;
    }
/**
     * - If a suitable victim is near, get route and stalk;
     * - If not and we have waited long enough, think;
     * - Else, do nothing.
     */
- If a suitable victim is near, get route and stalk;
- If not and we have waited long enough, think;
- Else, do nothing.
- If a suitable victim is near get route and stalk ; - If not and we have waited long enough think ; - Else do nothing .
private Action loiter() {
        targetAgent = context.getVictim();
        if (targetAgent != null) {
            route = context.getRouteToAgent(targetAgent);
            setState(AgentState.STALKING);
        } else if (wait <= 0) {
            setState(AgentState.THINKING);
        }
        return Action.WAIT;
    }
private Action loiter ( ) { targetAgent = context . getVictim ( ) ; if ( targetAgent != null ) { route = context . getRouteToAgent ( targetAgent ) ; setState ( AgentState . STALKING ) ; } else if ( wait <= 0 ) { setState ( AgentState . THINKING ) ; } return Action . WAIT ; }
- If a suitable victim is near, get route and stalk;
 - If not and we have waited long enough, think;
 - Else, do nothing.
- If a suitable victim is near get route and stalk ; - If not and we have waited long enough think ; - Else do nothing .