version 1.2 | | version 1.3 |
---|
| | |
int rtype; /* circle or rectangular */ | | int rtype; /* circle or rectangular */ |
} Room; | | } Room; |
| | |
int roguelike_place_room(Room *Rooms,int xsize, int ysize,int nrooms); | | static int roguelike_place_room(Room *Rooms,int xsize, int ysize,int nrooms); |
void roguelike_make_rooms(Room *Rooms,char **maze, int options); | | static void roguelike_make_rooms(Room *Rooms,char **maze, int options); |
void roguelike_link_rooms(Room *Rooms,char **maze,int xsize,int ysize); | | static void roguelike_link_rooms(Room *Rooms,char **maze,int xsize,int ysize); |
| | |
/* actually make the layout: we work by a reduction process: | | /* actually make the layout: we work by a reduction process: |
first we make everything a well, then we remove areas to make rooms */ | | first we make everything a well, then we remove areas to make rooms */ |
| | |
| | |
| | |
| | |
int roguelike_place_room(Room *Rooms,int xsize, int ysize,int nrooms) { | | static int roguelike_place_room(Room *Rooms,int xsize, int ysize,int nrooms) { |
| | |
int tx,ty; /* trial center locations */ | | int tx,ty; /* trial center locations */ |
int sx,sy; /* trial sizes */ | | int sx,sy; /* trial sizes */ |
| | |
| | |
| | |
/* write all the rooms into the maze */ | | /* write all the rooms into the maze */ |
void roguelike_make_rooms(Room *Rooms,char **maze, int options) { | | static void roguelike_make_rooms(Room *Rooms,char **maze, int options) { |
int making_circle=0; | | int making_circle=0; |
int i,j; | | int i,j; |
int R; | | int R; |
| | |
| | |
| | |
| | |
void roguelike_link_rooms(Room *Rooms,char **maze,int xsize,int ysize){ | | static void roguelike_link_rooms(Room *Rooms,char **maze,int xsize,int ysize){ |
Room *walk; | | Room *walk; |
int i,j; | | int i,j; |
/* link each room to the previous room */ | | /* link each room to the previous room */ |