Exemplo n.º 1
0
    /// <summary>
    /// Set basic parameters for entire ecosystem.
    /// </summary>
    /// <param name="ecoEditor">Ecosystem wrapper.</param>
    /// <param name="abilityPtsPerCreat">The maximum number of ability points that each creature is alloted (gives creatures the capacity to perform certain actions better).</param>
    /// <param name="commBits">The number of communication bits per creature (not currently in use).</param>
    /// <param name="renewInterval">The number of steps between each renewal of all resources on all Lands.</param>
    /// <param name="uniformRenewal">Renew resources across entire map.</param>
    /// <param name="clusterRenewal">Only renew resources in the clusters in which they were created (if using clusters to distribute).</param>
    /// <param name="useClusterColors">Indicated whether or not to use K-Means to cluster into 3 groups, associated with red, green, and blue</param>

    public static void setEcoParams(EcosystemEditor ecoEditor, int abilityPtsPerCreat, int commBits,
                                    int renewInterval, bool uniformRenewal, bool clusterRenewal, bool useClusterColors)
    {
        ecoEditor.setAbilityPointsPerCreature(10);
        ecoEditor.setCommBits(4);
        ecoEditor.setDistinctPhenotypeNum(4);
        ecoEditor.setRenewInterval(50);
        ecoEditor.setUniformRenewal(uniformRenewal);
        ecoEditor.setClusterRenewal(clusterRenewal);
        ecoEditor.setUseClusterColors(useClusterColors);
    }