#define NActiveStates 8 #define GeneLen NActiveStates typedef struct { unsigned char state; /* daughter's state and next state */ unsigned char alpha, beta, gamma; /* relative orientation */ } Gene; typedef struct { double x, y, z; } ThreeDPosition; typedef struct cell_rec { struct cell_rec *next, *mother; unsigned int step, state; double x, y, z; double afm[4][4]; double draw_x, draw_y, draw_r; } Cell; typedef struct { int score, id, size; Cell *cells; Gene gene[GeneLen]; } Individual;