ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/random_map.h
(Generate patch)

Comparing deliantra/server/random_maps/random_map.h (file contents):
Revision 1.40 by root, Sat Jul 3 02:19:10 2010 UTC vs.
Revision 1.41 by root, Sat Jul 3 03:09:27 2010 UTC

49 uint64_t total_map_hp; 49 uint64_t total_map_hp;
50 int map_layout_style; 50 int map_layout_style;
51 int symmetry_used; 51 int symmetry_used;
52 52
53 HV *hv; 53 HV *hv;
54 void hv_clone (); // replaces the hv by a clone'd copy (%new_hv = { %hv })
55 54
56 shstr_tmp as_shstr () const; 55 shstr_tmp as_shstr () const;
57 56
58 // fetch something from the options hash 57 // fetch something from the options hash
59 SV *get_sv (const char *option) const; 58 SV *get_sv (const char *option) const;
73 // "private", adjusted sizes 72 // "private", adjusted sizes
74 int Xsize; 73 int Xsize;
75 int Ysize; 74 int Ysize;
76 75
77 random_map_params (); 76 random_map_params ();
77 random_map_params (random_map_params *RP);
78 random_map_params (HV *hv); 78 random_map_params (HV *hv);
79 ~random_map_params (); 79 ~random_map_params ();
80}; 80};
81 81
82enum { 82enum {
86 LAYOUT_SPIRAL, 86 LAYOUT_SPIRAL,
87 LAYOUT_ROGUELIKE, 87 LAYOUT_ROGUELIKE,
88 LAYOUT_SNAKE, 88 LAYOUT_SNAKE,
89 LAYOUT_SQUARE_SPIRAL, 89 LAYOUT_SQUARE_SPIRAL,
90 LAYOUT_CAVE, 90 LAYOUT_CAVE,
91 LAYOUT_MULTIPLE,
91 NROFLAYOUTS, 92 NROFLAYOUTS,
92}; 93};
93 94
94/* 95/*
95 * Move these defines out of room_gen_onion.c to here, as 96 * Move these defines out of room_gen_onion.c to here, as
156 cell **data; 157 cell **data;
157 int w, h; 158 int w, h;
158 159
159 layout (int w, int h); 160 layout (int w, int h);
160 layout (layout &copy); 161 layout (layout &copy);
162
163 // reference rect in other layout - will not keep the data alive,
164 // so never swap with it's orig, or free the orig when in use.
161 layout (layout &orig, int x1, int y1, int x2, int y2); // reference rect in other layout 165 layout (layout &orig, int x1, int y1, int x2, int y2);
166
162 ~layout (); 167 ~layout ();
163 168
164 operator cell **() const 169 operator cell **() const
165 { 170 {
166 return data; 171 return data;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines