Beispiel #1
0
        public Bee(int radius, Random r, State initialState = State.OBSERVING)
        {
            memory          = new BeeMemory();
            rand            = r;
            memory.Location = Swarm.hive;

            memory.Status = initialState;

            if (initialState == State.EXPLORING)
            {
                StartLevySearch(GetRandomAngle(), RandomFlightLength());
            }

            Constants.DESTINATION_RADIUS = radius;

            Selected = false;
        }
Beispiel #2
0
        public Bee(int radius, Random r, State initialState = State.OBSERVING)
        {
            memory = new BeeMemory();
            rand = r;
            memory.Location = Swarm.hive;

            memory.Status = initialState;

            if (initialState == State.EXPLORING)
            {
                StartLevySearch(GetRandomAngle(), RandomFlightLength());
            }

            Constants.DESTINATION_RADIUS = radius;
            
            Selected = false;
        }