public Agent(AgentController ac, string name) { agentController = ac; Name = name; messageList = new List<AgentMessage>(); selfDeregister = false; processingMessages = false; receivingMessage = false; }
/// <summary> /// warning: motor should be created before creating an agent. if not, use AttachBike to assign motor correctly /// </summary> public BotAgent(AgentController ac, string name, int motorID) : base(ac, name) { this.motorID = motorID; ownMotor = (BotMotor)GameSettings.gameMotors[motorID]; teammates = new Hashtable(); enemies = new Hashtable(); friendlyAgents = new Hashtable(); steeringLocked = false; target = -1; lastTargetHP = 0; faData = new FoolAroundData(); avaisionPenalty = 0; }