void __stdcall forEachNbr( int x, // x-coordinate of agent int y, // y-coordinate of agent bool (*func)(pState,int,int, // name of function pState*,int,int) );