Skip to main content

one_super_agent

Function one_super_agent 

Source
fn one_super_agent(
    mstore: &Store,
    defs: &[AgentDefinition],
    planned: &mut Vec<PlannedSeat>,
    refuse: &str,
) -> Result<(), String>
Expand description

At most one agent holds the super seat: naming a second one moves it. The agent that held it goes back to the role it had (prior_role, else worker), keeping its qualifier, lead and area. An agent made super remembers the role it had.