evolve4src/src/evolve_simulator/evolve_io_ascii.cpp
static void write_spores(FILE *fp, UNIVERSE *u)
{
	int x, y;
	GRID_TYPE type;
	UNIVERSE_GRID ugrid;

	ASSERT( fp != NULL );
	ASSERT( u != NULL );

	for(x=0; x < u->width; x++) {
		for(y=0; y < u->height; y++) {
			type = Grid_Get(u, x, y, &ugrid);

			if( type == GT_SPORE ) {
				write_spore(fp, x, y, ugrid.u.spore);
			}
		}
	}
}
/*
 * Write out each spore as a SPORE photon ascii instance.
 */
Write out each spore as a SPORE photon ascii instance.
Write out each spore as a SPORE photon ascii instance .
static void write_spores(FILE *fp, UNIVERSE *u)
{
	int x, y;
	GRID_TYPE type;
	UNIVERSE_GRID ugrid;
	ASSERT( fp != NULL );
	ASSERT( u != NULL );
	for(x=0; x < u->width; x++) {
		for(y=0; y < u->height; y++) {
			type = Grid_Get(u, x, y, &ugrid);
			if( type == GT_SPORE ) {
				write_spore(fp, x, y, ugrid.u.spore);
			}
		}
	}
}
static void write_spores ( FILE * fp , UNIVERSE * u ) { int x , y ; GRID_TYPE type ; UNIVERSE_GRID ugrid ; ASSERT ( fp != NULL ) ; ASSERT ( u != NULL ) ; for ( x = 0 ; x < u -> width ; x ++ ) { for ( y = 0 ; y < u -> height ; y ++ ) { type = Grid_Get ( u , x , y , & ugrid ) ; if ( type == GT_SPORE ) { write_spore ( fp , x , y , ugrid . u . spore ) ; } } } }
Write out each spore as a SPORE photon ascii instance.
Write out each spore as a SPORE photon ascii instance .