コード例 #1
0
ファイル: Bee.cs プロジェクト: marioagarcia/BeeHiveSelection
        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;
        }
コード例 #2
0
ファイル: Bee.cs プロジェクト: jghaight/BeeHiveSelection
        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;
        }