… | |
… | |
38 | shstr origin_map; |
38 | shstr origin_map; |
39 | shstr final_map; |
39 | shstr final_map; |
40 | char exitstyle[512]; |
40 | char exitstyle[512]; |
41 | shstr this_map; |
41 | shstr this_map; |
42 | char exit_on_final_map[512]; |
42 | char exit_on_final_map[512]; |
|
|
43 | char *custom; |
43 | |
44 | |
44 | int Xsize; |
45 | int xsize, ysize; |
45 | int Ysize; |
|
|
46 | int expand2x; |
46 | int expand2x; |
47 | int layoutoptions1; |
47 | int layoutoptions1; |
48 | int layoutoptions2; |
48 | int layoutoptions2; |
49 | int layoutoptions3; |
49 | int layoutoptions3; |
50 | int symmetry; |
50 | int symmetry; |
… | |
… | |
57 | |
57 | |
58 | int decoroptions; |
58 | int decoroptions; |
59 | int orientation; |
59 | int orientation; |
60 | int origin_y; |
60 | int origin_y; |
61 | int origin_x; |
61 | int origin_x; |
62 | int random_seed; |
62 | uint32_t random_seed; |
63 | uint64_t total_map_hp; |
63 | uint64_t total_map_hp; |
64 | int map_layout_style; |
64 | int map_layout_style; |
65 | int treasureoptions; |
65 | int treasureoptions; |
66 | int symmetry_used; |
66 | int symmetry_used; |
67 | |
67 | |
68 | struct region *region; |
68 | struct region *region; |
|
|
69 | |
|
|
70 | // "private", adjusted sizes |
|
|
71 | int Xsize; |
|
|
72 | int Ysize; |
69 | }; |
73 | }; |
70 | |
74 | |
71 | enum { |
75 | enum { |
72 | LAYOUT_NONE, |
76 | LAYOUT_NONE, |
73 | LAYOUT_ONION, |
77 | LAYOUT_ONION, |
… | |
… | |
114 | SYMMETRY_X, |
118 | SYMMETRY_X, |
115 | SYMMETRY_Y, |
119 | SYMMETRY_Y, |
116 | SYMMETRY_XY, |
120 | SYMMETRY_XY, |
117 | }; |
121 | }; |
118 | |
122 | |
|
|
123 | // 12 has been experimentally :( determined ot be a lot more stable |
|
|
124 | // than 11 or 10, leading to the assumption that something inherently |
|
|
125 | // needs a minimum size of at least 12 |
119 | #define MIN_RANDOM_MAP_SIZE 10 |
126 | #define MIN_RANDOM_MAP_SIZE 12 |
120 | |
|
|
121 | /* a macro to get a strongly centered random distribution, |
|
|
122 | from 0 to x, centered at x/2 */ |
|
|
123 | #define BC_RANDOM(x) ((int) ((RANDOM() % (x)+RANDOM()%(x)+RANDOM()%(x))/3.)) |
|
|
124 | |
127 | |
125 | #endif |
128 | #endif |
126 | |
129 | |