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.125 by root, Sun Jan 10 19:21:46 2010 UTC vs.
Revision 1.126 by root, Sat Jan 16 17:41:01 2010 UTC

320 MTH void update_buttons (); 320 MTH void update_buttons ();
321 MTH int change_map_light (int change); 321 MTH int change_map_light (int change);
322 MTH int estimate_difficulty () const; 322 MTH int estimate_difficulty () const;
323 323
324 MTH void play_sound (faceidx sound, int x, int y) const; 324 MTH void play_sound (faceidx sound, int x, int y) const;
325 MTH void say_msg (const char *msg, int x, int y) const; 325 MTH void say_msg (const_utf8_string msg, int x, int y) const;
326 326
327 // connected links 327 // connected links
328 oblinkpt *find_link (shstr_tmp id); 328 oblinkpt *find_link (shstr_tmp id);
329 MTH void trigger (shstr_tmp id, int state = 1, object *activator = 0, object *originator = 0); 329 MTH void trigger (shstr_tmp id, int state = 1, object *activator = 0, object *originator = 0);
330 330
348 bool _load_objects (object_thawer &thawer); 348 bool _load_objects (object_thawer &thawer);
349 MTH bool _load_objects (object_thawer *thawer) { return _load_objects (*thawer); } 349 MTH bool _load_objects (object_thawer *thawer) { return _load_objects (*thawer); }
350 350
351 // save objects into the given file (uses IO_ flags) 351 // save objects into the given file (uses IO_ flags)
352 bool _save_objects (object_freezer &freezer, int flags); 352 bool _save_objects (object_freezer &freezer, int flags);
353 MTH bool _save_objects (const char *path, int flags); 353 MTH bool _save_objects (const_utf8_string path, int flags);
354 354
355 // save the header pseudo object _only_ 355 // save the header pseudo object _only_
356 bool _save_header (object_freezer &freezer); 356 bool _save_header (object_freezer &freezer);
357 MTH bool _save_header (const char *path); 357 MTH bool _save_header (const_utf8_string path);
358 358
359 maptile (); 359 maptile ();
360 maptile (int w, int h); 360 maptile (int w, int h);
361 ~maptile (); 361 ~maptile ();
362 362
389 } 389 }
390 390
391 void make_map_floor (char **layout, char *floorstyle, random_map_params *RP); 391 void make_map_floor (char **layout, char *floorstyle, random_map_params *RP);
392 bool generate_random_map (random_map_params *RP); 392 bool generate_random_map (random_map_params *RP);
393 393
394 static maptile *find_async (const char *path, maptile *original = 0, bool load = true);//PERL 394 static maptile *find_async (const_utf8_string path, maptile *original = 0, bool load = true);//PERL
395 static maptile *find_sync (const char *path, maptile *original = 0);//PERL 395 static maptile *find_sync (const_utf8_string path, maptile *original = 0);//PERL
396 static maptile *find_style_sync (const char *dir, const char *file = 0);//PERL 396 static maptile *find_style_sync (const_utf8_string dir, const_utf8_string file = 0);//PERL
397 object *pick_random_object (rand_gen &gen = rndm) const; 397 object *pick_random_object (rand_gen &gen = rndm) const;
398 398
399 mapspace &at (uint32 x, uint32 y) const { return spaces [x * height + y]; } 399 mapspace &at (uint32 x, uint32 y) const { return spaces [x * height + y]; }
400 400
401 // return an array of maprects corresponding 401 // return an array of maprects corresponding

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines