Changeset 667 for cpp/frams/genetics/fF/fF_genotype.h
- Timestamp:
- 06/07/17 12:01:16 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fF/fF_genotype.h
r348 r667 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2017 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 14 14 { 15 15 int number_of_chambers; 16 double scalex, scaley, scalez; 16 double radius0x, radius0y, radius0z; //radius of 0th (initial) chamber 17 double scalex, scaley, scalez; //(cumulative) scaling of consecutive chambers 17 18 double translation; 18 19 double angle1, angle2; 20 #define fF_PROPS_TO_MUTATE {0,4,5,6,7,8,9} //indexes of properties from paramtab; keep synchronized with fF_genotype.cpp 19 21 20 22 static ParamEntry paramtab[]; 21 23 Param param; 22 24 23 fF_growth_params() 24 :param(paramtab, this) 25 fF_growth_params() :param(paramtab, this) 25 26 { 26 27 reset(); … … 36 37 SString s = serialized; 37 38 int p = 0; //position in string 38 return ((param.load2(s, p) == 7) && (p == s.len()));39 return ((param.load2(s, p) == param.getPropCount()) && (p == s.len())); 39 40 } 40 41
Note: See TracChangeset
for help on using the changeset viewer.