source: cpp/gdk/f0classes.h @ 50

Last change on this file since 50 was 5, checked in by sz, 16 years ago

added the GDK (Genotype Development Kit)

File size: 4.5 KB
Line 
1// This file is a part of Framsticks GDK library.
2// Copyright (C) 2002-2006  Szymon Ulatowski.  See LICENSE.txt for details.
3// Refer to http://www.frams.alife.pl/ for further information.
4
5
6#define FIELDSTRUCT Part
7ParamEntry f0_part_paramtab[]=
8{
9 {"Geometry",3,14,"p" },
10 {"Other properties",},
11 {"Visual",},
12 {"x",0,1024,"position.x","f",FIELD(p.x),},
13 {"y",0,1024,"position.y","f",FIELD(p.y),},
14 {"z",0,1024,"position.z","f",FIELD(p.z),},
15 {"m",1,0,"mass","f 0.1 999.0 1.0",FIELD(mass),},
16 {"s",1,0,"size","f 0.1 10.0 1.0",FIELD(size),},
17 {"dn",1,0,"density","f 0.2 5.0 1.0",FIELD(density),},
18 {"fr",1,0,"friction","f 0.0 4.0 0.4",FIELD(friction),},
19 {"ing",1,0,"ingestion","f 0.0 1.0 0.25",FIELD(ingest),},
20 {"as",1,0,"assimilation","f 0.0 1.0 0.25",FIELD(assim),},
21 {"rx",0,0,"rot.x","f",FIELD(rot.x),},
22 {"ry",0,1024,"rot.y","f",FIELD(rot.y),},
23 {"rz",0,1024,"rot.z","f",FIELD(rot.z),},
24 {"i",1,0,"info","s",FIELD(info),},
25 {"Vstyle",2,0,"vis_style","s 0 -1 part",FIELD(vis_style),},
26 {0,0,0,}
27};
28ParamEntry f0_part_xtra_paramtab[]=
29{
30 {"Extra properties",1,5,"p"},
31 {"m",0,0,"mass","f 0.1 999.0 1.0",FIELD(mass),},
32 {"dn",0,0,"density","f 0.2 5.0 1.0",FIELD(density),},
33 {"fr",0,0,"friction","f 0.0 4.0 0.4",FIELD(friction),},
34 {"ing",0,0,"ingestion","f 0.0 1.0 0.25",FIELD(ingest),},
35 {"as",0,0,"assimilation","f 0.0 1.0 0.25",FIELD(assim),},
36 {0,0,0,}
37};
38#undef FIELDSTRUCT
39
40
41#define FIELDSTRUCT Joint
42ParamEntry f0_joint_paramtab[]=
43{
44 {"Connections",4,13,"j" },
45 {"Geometry",},
46 {"Other properties",},
47 {"Visual",},
48 {"p1",0,1024,"part1 ref#","d -1 999999 -1",FIELD(p1_refno),},
49 {"p2",0,1024,"part2 ref#","d -1 999999 -1",FIELD(p2_refno),},
50 {"rx",1,0,"rotation.x","f",FIELD(rot.x),},
51 {"ry",1,1024,"rotation.y","f",FIELD(rot.y),},
52 {"rz",1,1024,"rotation.z","f",FIELD(rot.z),},
53 {"dx",1,0,"delta.x","f -2 2 0",FIELD(d.x),},
54 {"dy",1,1024,"delta.y","f -2 2 0",FIELD(d.y),},
55 {"dz",1,1024,"delta.z","f -2 2 0",FIELD(d.z),},
56 {"stif",2,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
57 {"rotstif",2,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
58 {"stam",2,0,"stamina","f 0.0 1.0 0.25",FIELD(stamina),},
59 {"i",2,0,"info","s",FIELD(info),},
60 {"Vstyle",3,0,"vis_style","s 0 -1 joint",FIELD(vis_style),},
61 {0,0,0,}
62};
63ParamEntry f0_joint_xtra_paramtab[]=
64{
65 {"Extra properties",1,2,"j"},
66 {"stif",0,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
67 {"rotstif",0,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
68 {0,0,0,}
69};
70#undef FIELDSTRUCT
71
72
73#define FIELDSTRUCT Joint
74ParamEntry f0_nodeltajoint_paramtab[]=
75{
76 {"Connections",4,7,"j" },
77 {"Geometry",},
78 {"Other properties",},
79 {"Visual",},
80 {"p1",0,1024,"part1 ref#","d -1 999999 -1",FIELD(p1_refno),},
81 {"p2",0,1024,"part2 ref#","d -1 999999 -1",FIELD(p2_refno),},
82 {"stif",2,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
83 {"rotstif",2,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
84 {"stam",2,0,"stamina","f 0.0 1.0 0.25",FIELD(stamina),},
85 {"i",2,0,"info","s",FIELD(info),},
86 {"Vstyle",3,0,"vis_style","s 0 -1 joint",FIELD(vis_style),},
87 {0,0,0,}
88};
89ParamEntry f0_nodeltajoint_xtra_paramtab[]=
90{
91 {"Extra properties",1,2,"j"},
92 {"stif",0,0,"stiffness","f 0.0 1.0 1.0",FIELD(stif),},
93 {"rotstif",0,0,"rotation stiffness","f 0.0 1.0 1.0",FIELD(rotstif),},
94 {0,0,0,}
95};
96#undef FIELDSTRUCT
97
98
99#define FIELDSTRUCT Neuro
100ParamEntry f0_neuro_paramtab[]=
101{
102 {"Connections",3,9,"n" },
103 {"Other",},
104 {"Visual",},
105 {"p",0,0,"part ref#","d -1 999999 -1",FIELD(part_refno),},
106 {"j",0,0,"joint ref#","d -1 999999 -1",FIELD(joint_refno),},
107 {"d",1,0,"item details","s",GETSET(details),},
108 {"i",1,0,"info","s",FIELD(info),},
109 {"Vstyle",2,0,"vis_style","s 0 -1 neuro",FIELD(vis_style),},
110 {"getInputCount",0,1+2,"input count","d",GETONLY(inputCount),},
111 {"getInputNeuroDef",0,1+2,"get input neuron","p oNeuroDef(d)",PROCEDURE(p_getInputNeuroDef),},
112 {"getInputNeuroIndex",0,1+2,"get input neuron index","p d(d)",PROCEDURE(p_getInputNeuroIndex),},
113 {"getInputWeight",0,1+2,"get input weight","p f(d)",PROCEDURE(p_getInputWeight),},
114 {0,0,0,}
115};
116ParamEntry f0_neuro_xtra_paramtab[]=
117{
118 {"Extra properties",1,0,"n"},
119 {0,0,0,}
120};
121#undef FIELDSTRUCT
122
123
124#define FIELDSTRUCT NeuroConn
125ParamEntry f0_neuroconn_paramtab[]=
126{
127 {"Connection",2,4,"c" },
128 {"Other",},
129 {"n1",0,1024,"this neuro ref#","d -1 999999 -1",FIELD(n1_refno),},
130 {"n2",0,1024,"connected neuro ref#","d -1 999999 -1",FIELD(n2_refno),},
131 {"w",0,1024,"weight","f -999999 999999 1.0",FIELD(weight),},
132 {"i",1,0,"info","s",FIELD(info),},
133 {0,0,0,}
134};
135ParamEntry f0_neuroconn_xtra_paramtab[]=
136{
137 {"Extra properties",1,0,"c"},
138 {0,0,0,}
139};
140#undef FIELDSTRUCT
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
Note: See TracBrowser for help on using the repository browser.