compare agent->getType with the constants from AgentTypes.h