Ignore:
Timestamp:
05/06/25 22:56:57 (5 days ago)
Author:
Maciej Komosinski
Message:

Introduced GeneProps::get_standard_values(): a getter function to ensure controlled initialization of the static "standard_values" object

File:
1 edited

Legend:

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

    r1313 r1335  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2024  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2025  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    143143        double cblue;             ///<incremented by G, decremented by g. Part's blue color proportion
    144144
    145         static GeneProps standard_values;
     145        static const GeneProps& get_standard_values();
    146146       
    147147        static GenePropsOps* getDefaultOps();
Note: See TracChangeset for help on using the changeset viewer.