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

Comparing deliantra/server/random_maps/random_map.C (file contents):
Revision 1.27 by root, Sat Jan 27 02:19:37 2007 UTC vs.
Revision 1.29 by root, Tue Apr 17 10:06:34 2007 UTC

29#include <room_gen.h> 29#include <room_gen.h>
30#include <random_map.h> 30#include <random_map.h>
31#include <rproto.h> 31#include <rproto.h>
32#include <sproto.h> 32#include <sproto.h>
33 33
34#define CEDE coroapi::cede (); rndm.seed (RP->random_seed + __LINE__); 34#define CEDE coroapi::cede_to_tick (); rndm.seed (RP->random_seed + __LINE__);
35 35
36void 36void
37dump_layout (char **layout, random_map_params *RP) 37dump_layout (char **layout, random_map_params *RP)
38{ 38{
39 { 39 {
816 816
817void 817void
818write_parameters_to_string (char *buf, 818write_parameters_to_string (char *buf,
819 int xsize_n, 819 int xsize_n,
820 int ysize_n, 820 int ysize_n,
821 char *wallstyle_n, 821 const char *wallstyle_n,
822 char *floorstyle_n, 822 const char *floorstyle_n,
823 char *monsterstyle_n, 823 const char *monsterstyle_n,
824 char *treasurestyle_n, 824 const char *treasurestyle_n,
825 char *layoutstyle_n, 825 const char *layoutstyle_n,
826 char *decorstyle_n, 826 const char *decorstyle_n,
827 char *doorstyle_n, 827 const char *doorstyle_n,
828 char *exitstyle_n, 828 const char *exitstyle_n,
829 char *final_map_n, 829 const char *final_map_n,
830 char *exit_on_final_map_n, 830 const char *exit_on_final_map_n,
831 char *this_map_n, 831 const char *this_map_n,
832 int layoutoptions1_n, 832 int layoutoptions1_n,
833 int layoutoptions2_n, 833 int layoutoptions2_n,
834 int layoutoptions3_n, 834 int layoutoptions3_n,
835 int symmetry_n, 835 int symmetry_n,
836 int dungeon_depth_n, 836 int dungeon_depth_n,
837 int dungeon_level_n, 837 int dungeon_level_n,
838 int difficulty_n, 838 int difficulty_n,
839 int difficulty_given_n, 839 int difficulty_given_n,
840 int decoroptions_n, 840 int decoroptions_n,
841 int orientation_n, 841 int orientation_n,
842 int origin_x_n, int origin_y_n, uint32_t random_seed_n, int treasureoptions_n, float difficulty_increase) 842 int origin_x_n,
843 int origin_y_n,
844 uint32_t random_seed_n,
845 int treasureoptions_n,
846 float difficulty_increase)
843{ 847{
844 char small_buf[16384]; 848 char small_buf[16384];
845 849
846 sprintf (buf, "xsize %d\nysize %d\n", xsize_n, ysize_n); 850 sprintf (buf, "xsize %d\nysize %d\n", xsize_n, ysize_n);
847 851

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines