Ignore:
Timestamp:
06/22/23 04:00:45 (22 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/geneprops.h

    r1249 r1260  
    2828};
    2929
    30 class GenePropsOp_Old : public GenePropsOp
     30class GenePropsOp_Legacy : public GenePropsOp
    3131{
    3232        double minvalue, maxvalue, defvalue, change, revchange;
    3333public:
    34         GenePropsOp_Old(double minvalue, double maxvalue, double defvalue, double change, double revchange = -1);
     34        GenePropsOp_Legacy(double minvalue, double maxvalue, double defvalue, double change, double revchange = -1);
    3535        double increase(double value) const;
    3636        double decrease(double value) const;
    37         friend class GenePropsOps_New05;
     37        friend class GenePropsOps_AllChange05;
    3838};
    3939
    4040class GenePropsOp_NormalizedAndScaled : public GenePropsOp
    4141{
    42         GenePropsOp_Old normalized;
     42        GenePropsOp_Legacy normalized;
    4343public:
    4444        GenePropsOp_NormalizedAndScaled(double change) :normalized(-1, 1, 0, change) {}
     
    7979};
    8080
    81 class GenePropsOps_Old : public GenePropsOps
     81class GenePropsOps_Legacy : public GenePropsOps
    8282{
    8383public:
    84         GenePropsOps_Old();
     84        GenePropsOps_Legacy();
    8585};
    8686
    87 class GenePropsOps_New05 : public GenePropsOps_Old
     87/**
     88* Just as legacy (before 2023-06), but the influence of each modifier is uniform and simpler (no normalizeBiol4()).
     89* This is what is currently used in Framsticks.
     90*/
     91class GenePropsOps_AllChange05 : public GenePropsOps_Legacy
    8892{
    8993public:
    90         GenePropsOps_New05();
     94        GenePropsOps_AllChange05();
    9195};
    9296
     97/**
     98* Just an experiment with a different scaling of the influence of individual modifier characters to cover
     99* the entire range of parameter values. After investigations we decided that it does not
     100* provide any advantages over "AllChange05".
     101*/
    93102class GenePropsOps_Exponential : public GenePropsOps
    94103{
     
    132141
    133142        static GeneProps standard_values;
    134         static GenePropsOps* standard_ops;
    135         static GenePropsOps* getStandardOps();
     143       
     144        static GenePropsOps* getDefaultOps();
     145        static void setDefaultOps(GenePropsOps* ops);
    136146
     147        static GenePropsOps* getAllChange05Ops();
     148        static GenePropsOps* getLegacyOps();
     149       
    137150        /**
    138151         * Constructor initializing all properties with default values.
     
    154167         */
    155168        int executeModifier(char modif, GenePropsOps* ops = NULL);
    156         int executeModifier_Legacy(char modif);
    157169
    158170        /**
Note: See TracChangeset for help on using the changeset viewer.