public List<CrowdAgent> getActiveAgents() {
        List<CrowdAgent> agents = new ArrayList<>(m_maxAgents);
        for (int i = 0; i < m_maxAgents; ++i) {
            if (m_agents[i].active) {
                agents.add(m_agents[i]);
            }
        }
        return agents;
    }
public List < CrowdAgent > getActiveAgents ( ) { List < CrowdAgent > agents = new ArrayList < > ( m_maxAgents ) ; for ( int i = 0 ; i < m_maxAgents ; ++ i ) { if ( m_agents [ i ] . active ) { agents . add ( m_agents [ i ] ) ; } } return agents ; }
/ @return The number of agents returned in @p agents.