Changeset 64 for cpp/gdk/model.cpp
- Timestamp:
- 01/28/11 23:29:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/model.cpp
r5 r64 1 // This file is a part of Framsticks GDK library.2 // Copyright (C) 2002-20 06Szymon Ulatowski. See LICENSE.txt for details.3 // Refer to http://www.frams .alife.pl/ for further information.1 // This file is a part of the Framsticks GDK library. 2 // Copyright (C) 2002-2011 Szymon Ulatowski. See LICENSE.txt for details. 3 // Refer to http://www.framsticks.com/ for further information. 4 4 5 5 #include "nonstd.h" … … 960 960 } 961 961 } 962 if (final) if (j->d()>getMaxJoint().d.x) 962 if (final) 963 { 964 if (j->d()>getMaxJoint().d.x) 963 965 { 964 966 ret=0; 965 967 FMprintf("Model","internalCheck",FMLV_ERROR,"delta too big in joint #%d (%s)", 966 968 i,(const char*)geno.getName()); 969 } 970 else if (j->d()<getMinJoint().d.x) 971 { 972 ret=0; 973 FMprintf("Model","internalCheck",FMLV_ERROR,"delta too small in joint #%d (%s)", 974 i,(const char*)geno.getName()); 975 } 967 976 } 968 977 } … … 1259 1268 class MaxNeuro: public Neuro {public: MaxNeuro() {Param par(f0_neuro_paramtab,this);par.setMax();}}; 1260 1269 1261 constPart& Model::getMinPart() {static MinPart part; return part;}1262 constPart& Model::getMaxPart() {static MaxPart part; return part;}1263 constPart& Model::getDefPart() {static Part part; return part;}1264 constJoint& Model::getMinJoint() {static MinJoint joint; return joint;}1265 constJoint& Model::getMaxJoint() {static MaxJoint joint; return joint;}1266 constJoint& Model::getDefJoint() {static Joint joint; return joint;}1267 constNeuro& Model::getMinNeuro() {static MinNeuro neuro; return neuro;}1268 constNeuro& Model::getMaxNeuro() {static MaxNeuro neuro; return neuro;}1269 constNeuro& Model::getDefNeuro() {static Neuro neuro; return neuro;}1270 Part& Model::getMinPart() {static MinPart part; return part;} 1271 Part& Model::getMaxPart() {static MaxPart part; return part;} 1272 Part& Model::getDefPart() {static Part part; return part;} 1273 Joint& Model::getMinJoint() {static MinJoint joint; return joint;} 1274 Joint& Model::getMaxJoint() {static MaxJoint joint; return joint;} 1275 Joint& Model::getDefJoint() {static Joint joint; return joint;} 1276 Neuro& Model::getMinNeuro() {static MinNeuro neuro; return neuro;} 1277 Neuro& Model::getMaxNeuro() {static MaxNeuro neuro; return neuro;} 1278 Neuro& Model::getDefNeuro() {static Neuro neuro; return neuro;}
Note: See TracChangeset
for help on using the changeset viewer.