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

Comparing deliantra/server/include/map.h (file contents):
Revision 1.47 by root, Thu Jan 4 16:19:32 2007 UTC vs.
Revision 1.51 by root, Sat Jan 13 23:06:13 2007 UTC

1/* 1/*
2 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
3 3
4 Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
4 Copyright (C) 2002-2005 Mark Wedel & Crossfire Development Team 5 Copyright (C) 2002-2005 Mark Wedel & Crossfire Development Team
5 Copyright (C) 1992 Frank Tore Johansen 6 Copyright (C) 1992 Frank Tore Johansen
6 7
7 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
297 298
298 MTH void clear_header (); 299 MTH void clear_header ();
299 MTH void clear_links_to (maptile *m); 300 MTH void clear_links_to (maptile *m);
300 301
301 // loas the header pseudo-object 302 // loas the header pseudo-object
302 bool load_header (object_thawer &thawer); 303 bool _load_header (object_thawer &thawer);
303 MTH bool load_header (const char *path); 304 MTH bool _load_header (const char *path);
304 305
305 // load objects into the map 306 // load objects into the map
306 bool load_objects (object_thawer &thawer); 307 bool _load_objects (object_thawer &thawer);
307 MTH bool load_objects (const char *path, bool skip_header = true); 308 MTH bool _load_objects (const char *path, bool skip_header = true);
308 309
309 // save objects into the given file (uses IO_ flags) 310 // save objects into the given file (uses IO_ flags)
310 bool save_objects (object_freezer &freezer, int flags); 311 bool _save_objects (object_freezer &freezer, int flags);
311 MTH bool save_objects (const char *path, int flags); 312 MTH bool _save_objects (const char *path, int flags);
312 313
313 // save the header pseudo object _only_ 314 // save the header pseudo object _only_
314 bool save_header (object_freezer &freezer); 315 bool _save_header (object_freezer &freezer);
315 MTH bool save_header (const char *path); 316 MTH bool _save_header (const char *path);
316 317
317 maptile (); 318 maptile ();
318 maptile (int w, int h); 319 maptile (int w, int h);
319 ~maptile (); 320 ~maptile ();
320 321
342 { 343 {
343 if (!spaces) 344 if (!spaces)
344 do_load_sync (); 345 do_load_sync ();
345 } 346 }
346 347
348 void make_map_floor (char **layout, char *floorstyle, random_map_params *RP);
349 bool generate_random_map (random_map_params *RP);
350
347 static maptile *find_sync (const char *path, maptile *original = 0);//PERL 351 static maptile *find_sync (const char *path, maptile *original = 0);//PERL
348 static void emergency_save ();//PERL 352 // async prefetch
353 static maptile *find_async (const char *path, maptile *original = 0);//PERL
349 354
350 mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } 355 mapspace const &at (uint32 x, uint32 y) const { return spaces [x * height + y]; }
351 mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; } 356 mapspace &at (uint32 x, uint32 y) { return spaces [x * height + y]; }
352}; 357};
353 358

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines