Changeset 676 for cpp


Ignore:
Timestamp:
08/26/17 03:05:37 (7 years ago)
Author:
Maciej Komosinski
Message:

Improved comments, removed unnecessary TODO regarding "Rr" modifiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/f4/oper_f4.cpp

    r674 r676  
    1818//see also modifiers in f1
    1919#define F4_MODIFIERS_VISUAL "" //not supported in f4
    20 #define F4_MODIFIERS_RARE "EeWwAaSs" //expdef would need to handle these properly/specifically to ensure reasonable behavior, and hardly any expdef does. Modifying initial energy of a creature as a result of its genes (Ee) is in general not a good idea. Weight (Ww) works only in water, and there sinking/going up should usually be caused by real activity of a creature, not by its inherited weight. For assimilation (Aa) , there is a dedicated parameter in CreaturesGroup. Stamina (Ss) is no longer needed as destructive collisions are not supported, and even if they were, some expdef would need to impose reasonable restrictions on the value of this parameter (e.g. similar to normalizeBiol4()) and the specific consequences of destructions should be defined as needed.
    21 #define F4_MODIFIERS "LlRrCcQqFfMmIi" F4_MODIFIERS_RARE F4_MODIFIERS_VISUAL //TODO no Rr in f4?
     20#define F4_MODIFIERS_RARE "EeWwAaSs" //expdef would need to handle these properly/specifically to ensure reasonable behavior, and hardly any expdef does. Modifying initial energy of a creature as a result of its genes (Ee) is in general not a good idea. Weight (Ww) works only in water, and in water sinking/going up should usually be caused by real "intentional" activity of a creature, not by its inherited weight. For assimilation (Aa), there is a dedicated parameter in CreaturesGroup. Stamina (Ss) is no longer needed as destructive collisions are not supported, and even if they were, some expdef would need to impose reasonable restrictions on the value of this parameter (e.g. similar to normalizeBiol4()) so there is some cost associated with it, and the specific consequences of destructions should be defined as needed.
     21#define F4_MODIFIERS "LlRrCcQqFfMmIi" F4_MODIFIERS_RARE F4_MODIFIERS_VISUAL
    2222const char *Geno_f4::all_modifiers = F4_MODIFIERS;
    2323
     
    629629        char ch = g[pos];
    630630        // style categories
    631 #define STYL4CAT_MODIFIC "LlRrCcQqAaIiSsMmFfWwEe,"
     631#define STYL4CAT_MODIFIC F4_MODIFIERS ","
    632632#define STYL4CAT_NEUMOD "[]|@*GTS:+-/!="
    633633#define STYL4CAT_DIGIT "0123456789."
Note: See TracChangeset for help on using the changeset viewer.