コード例 #1
0
ファイル: Agent.cs プロジェクト: valdemart/Motorki
 public Agent(AgentController ac, string name)
 {
     agentController = ac;
     Name = name;
     messageList = new List<AgentMessage>();
     selfDeregister = false;
     processingMessages = false;
     receivingMessage = false;
 }
コード例 #2
0
ファイル: BotAgent.cs プロジェクト: valdemart/Motorki
        /// <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;
        }