(svn r14847) -Codechange: generalise the circular search to search around a rectangle (PhilSophus)

This commit is contained in:
rubidium
2009-01-05 17:48:54 +00:00
parent d5f311d3a2
commit d642a55b91
2 changed files with 39 additions and 23 deletions

View File

@@ -393,6 +393,11 @@ typedef bool TestTileOnSearchProc(TileIndex tile, void *user_data);
*/
bool CircularTileSearch(TileIndex *tile, uint size, TestTileOnSearchProc proc, void *user_data);
/**
* Searches for some cirumstances of a tile around a given rectangle with a helper function.
*/
bool CircularTileSearch(TileIndex *tile, uint radius, uint w, uint h, TestTileOnSearchProc proc, void *user_data);
/**
* Get a random tile out of a given seed.
* @param r the random 'seed'