Function is_mechanically_active(const Agent *)

Function Documentation

bool is_mechanically_active(const Agent *agent)

Checks if the given agent is mechanically active in the crowd. An agent is considered mechanically active if it is present in the mech_active_agents container.

Parameters:

agent -- The agent to check.

Returns:

True if the agent is mechanically active, false otherwise.