Changeset 935 for cpp/frams/genetics/fL


Ignore:
Timestamp:
05/29/20 15:20:29 (4 years ago)
Author:
Maciej Komosinski
Message:

Utility functions that provide a set of all neuron classes fulfilling given criteria now also filter neuron classes by the desired Model shape type (BALL_AND_STICK or SOLIDS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/fL/fL_oper.cpp

    r896 r935  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2019  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2020  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
     
    141141                {
    142142                        SString det;
    143                         NeuroClass *cls = getRandomNeuroClass();
     143                        NeuroClass *cls = getRandomNeuroClass(Model::SHAPE_BALL_AND_STICK);
    144144                        det = cls->getName();
    145145                        Geno_fH::mutateNeuronProperties(det);
     
    201201                        return creature->words["S"];
    202202                case FL_ADD_NEURO:
    203                         if (getActiveNeuroClassCount() == 0)
     203                        if (getActiveNeuroClassCount(Model::SHAPE_BALL_AND_STICK) == 0)
    204204                                return creature->words["S"];
    205205                        else
Note: See TracChangeset for help on using the changeset viewer.