Example #1
0
    private void initializeGeneticAlgorithmAttributs()
    {
        this.widthInterestField  = entity.getMentalMap().GetLength(0);
        this.heightInterestField = entity.getMentalMap().GetLength(1);
        this.interestField       = new double[widthInterestField, heightInterestField];
        initialiseInterestField();

        this.labelingWeights = new double[10];
        initialiseLabelingWeights();
    }
Example #2
0
    private void GenerationMap()
    {
        entity.newGeneration();

        //Actualize the position of the entity
        entity.actualizePositionEntity();

        //Update the fieldOfView for the start
        entity.updateFieldOfViewEntity();

        //Update the fieldOfView for the start
        entity.updateMentalMapEntity();

        //Destroy the mesh of the last frame
        entity.fogHandler.getFogMeshHandler().DestructMesh();
        //Create the starting fog of the new map
        entity.fogHandler.CreateFog(entity.getMentalMap());
    }