GME
13
|
Go to the source code of this file.
Defines | |
#define | FindStartEnd(rect, chk) |
#define | test_and_return_if_found() |
#define FindStartEnd | ( | rect, | |
chk | |||
) |
int startx = (rect.left / GME_GRID_SIZE); \ int starty = (rect.top / GME_GRID_SIZE); \ int endx = ((rect.right + GME_GRID_SIZE - 1) / GME_GRID_SIZE); \ int endy = ((rect.bottom + GME_GRID_SIZE - 1) / GME_GRID_SIZE); \ if(chk) { \ ASSERT(startx >= 0); \ ASSERT(starty >= 0); \ ASSERT(endx < GME_MAX_GRID_DIM); \ ASSERT(endy < GME_MAX_GRID_DIM); \ }
Definition at line 106 of file ModelGrid.cpp.
#define test_and_return_if_found | ( | ) |
if(IsAvailableG(test,size)) { \ rect.MoveToXY(test.x * GME_GRID_SIZE, test.y * GME_GRID_SIZE); \ return TRUE; \ }
Definition at line 132 of file ModelGrid.cpp.