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.35 by root, Fri Jul 2 15:43:37 2010 UTC vs.
Revision 1.36 by root, Fri Jul 2 17:18:04 2010 UTC

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 &copy);
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);
213private:
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.
215static inline int 218static inline int
216rmg_find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop) 219rmg_find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines