Exemple #1
0
        public Agent()
        {
            // create the long range sensor
            longRangeSensor = new ProximitySensor(60, 0);

            // create the short range sensor for wall following
            shortRangeSensor = new ProximitySensor(5, 90);

            // create the movement interface
            movement = new Movement(this);

            random = new Random();
        }