Changeset 81 for cpp/gdk/neuroimpl.h


Ignore:
Timestamp:
02/08/13 03:29:17 (11 years ago)
Author:
Maciej Komosinski
Message:

improved parsing of properties (e.g. in f0 genotypes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/gdk/neuroimpl.h

    r72 r81  
    1515class NeuroImpl;
    1616extern ParamEntry neuroimpl_tab[];
    17 #ifdef NEURO_SIGNALS
    18 extern Param neurosignals_param;
    19 #endif
    2017
    2118class Creature;
     
    3128double touchrange;
    3229
    33 static NeuroNetConfig globalconfig;
     30static NeuroNetConfig& getGlobalConfig();
    3431};
    3532
     
    5451PARAMPROCDEF(p_receiveSingle);
    5552#undef STATRICKCLASS
     53
     54static Param& getStaticParam();
    5655};
    5756#endif
     
    7574static double getStateFromNeuro(Neuro *n);
    7675int getErrorCount() {return errorcount;}
    77 NeuroNetImpl(Model& model, NeuroNetConfig& conf = NeuroNetConfig::globalconfig
     76NeuroNetImpl(Model& model, NeuroNetConfig& conf = NeuroNetConfig::getGlobalConfig()
    7877#ifdef NEURO_SIGNALS
    7978, ChannelSpace *ch=0
     
    250249NeuroImpl():owner(0),neuro(0),newstate(0),paramentries(0),simorder(1),status(BeforeInit),channels(1),fields_param(0),fields_object(0)
    251250#ifdef NEURO_SIGNALS
    252 ,sigs(this),sigs_obj(&neurosignals_param,&sigs)
     251,sigs(this),sigs_obj(&NeuroSignals::getStaticParam(),&sigs)
    253252#endif
    254253 {}
     
    298297PARAMGETDEF(classObject);
    299298#undef STATRICKCLASS
     299
     300  static Param& getStaticParam();
    300301};
    301302
Note: See TracChangeset for help on using the changeset viewer.