… | |
… | |
199 | { |
199 | { |
200 | ::swap (layout.ptr->col, ptr->col); |
200 | ::swap (layout.ptr->col, ptr->col); |
201 | ::swap (layout.ptr->w , ptr->w ); |
201 | ::swap (layout.ptr->w , ptr->w ); |
202 | ::swap (layout.ptr->h , ptr->h ); |
202 | ::swap (layout.ptr->h , ptr->h ); |
203 | } |
203 | } |
|
|
204 | |
|
|
205 | // for debugging, print layout to stdout |
|
|
206 | void print (); |
204 | }; |
207 | }; |
205 | |
208 | |
206 | // utility functions, to use rmg_rndm instead of rndm. |
209 | // utility functions, to use rmg_rndm instead of rndm. |
207 | static inline int |
210 | static inline int |
208 | rmg_find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop) |
211 | rmg_find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop) |