GME  13
Defines
ModelGrid.cpp File Reference

Go to the source code of this file.

Defines

#define FindStartEnd(rect, chk)
#define test_and_return_if_found()

Define Documentation

#define FindStartEnd (   rect,
  chk 
)
Value:
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.

Value:
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.