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

Comparing deliantra/server/random_maps/snake.C (file contents):
Revision 1.12 by root, Thu Jul 1 01:22:44 2010 UTC vs.
Revision 1.13 by root, Fri Jul 2 15:03:57 2010 UTC

20 * 20 *
21 * The authors can be reached via e-mail to <support@deliantra.net> 21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */ 22 */
23 23
24/* peterm@langmuir.eecs.berkeley.edu: this function generates a random 24/* peterm@langmuir.eecs.berkeley.edu: this function generates a random
25snake-type layout. 25snake-type maze.
26 26
27input: xsize, ysize; 27input: xsize, ysize;
28output: a char** array with # and . for closed and open respectively. 28output: a char** array with # and . for closed and open respectively.
29 29
30a char value of 0 represents a blank space: a '#' is 30a char value of 0 represents a blank space: a '#' is
35#include <global.h> 35#include <global.h>
36#include "random_map.h" 36#include "random_map.h"
37#include "rproto.h" 37#include "rproto.h"
38 38
39void 39void
40make_snake_layout (Layout &maze, int options) 40make_snake_layout (layout &maze, int options)
41{ 41{
42 int i, j; 42 int i, j;
43 43
44 maze.clear (); 44 maze.clear ();
45 maze.border (); 45 maze.border ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines