… | |
… | |
164 | |
164 | |
165 | cell **data; |
165 | cell **data; |
166 | int w, h; |
166 | int w, h; |
167 | |
167 | |
168 | layout (int w, int h); |
168 | layout (int w, int h); |
|
|
169 | layout (layout ©); |
169 | ~layout (); |
170 | ~layout (); |
170 | |
171 | |
171 | operator cell **() const |
172 | operator cell **() const |
172 | { |
173 | { |
173 | return data; |
174 | return data; |
… | |
… | |
207 | MTH void expand2x (); |
208 | MTH void expand2x (); |
208 | MTH void symmetrize (int symmetry); |
209 | MTH void symmetrize (int symmetry); |
209 | MTH void rotate (int rotation); // rotate by 1=90, 2=180, 3=270 degrees |
210 | MTH void rotate (int rotation); // rotate by 1=90, 2=180, 3=270 degrees |
210 | |
211 | |
211 | void generate (random_map_params *RP); |
212 | void generate (random_map_params *RP); |
|
|
213 | private: |
|
|
214 | void alloc (int w, int h); |
212 | }; |
215 | }; |
213 | |
216 | |
214 | // utility functions, to use rmg_rndm instead of rndm. |
217 | // utility functions, to use rmg_rndm instead of rndm. |
215 | static inline int |
218 | static inline int |
216 | rmg_find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop) |
219 | rmg_find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop) |