// phmap1.h MR May 2001 // // Pheromone Map, for quick determining of distance to // nearest pheromone-emitting entity on/in a chessboard world. // // See comments / usage guidelines / documentation in file 'phmap1.c'. #ifndef _PHMAP1_H_ #define _PHMAP1_H_ #include void phmap_init( int * pmap, int xsize, int ysize ); void phmap_enteremitter( int * pmap, int xsize, int ysize, int ix, int iy ); void phmap_calc( int * pmap, int xsize, int ysize ); int phmap_getdist( const int * pmap, int xsize, int ysize, int ix, int iy ); void phmap_fprint( // (For testing purposes) FILE * fp, const int * pmap, int xsize, int ysize ); #endif // _PHMAP1_H_