Crossfire Server, Trunk  R20513
Functions
snake.c File Reference

Snake-like layout generator. More...

#include "global.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
Include dependency graph for snake.c:

Go to the source code of this file.

Functions

char ** make_snake_layout (int xsize, int ysize)
 Generate a snake-like layout. More...
 

Detailed Description

Snake-like layout generator.

Author
peter.nosp@m.m@la.nosp@m.ngmui.nosp@m.r.ee.nosp@m.cs.be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u

Definition in file snake.c.

Function Documentation

char** make_snake_layout ( int  xsize,
int  ysize 
)

Generate a snake-like layout.

Parameters
xsize
ysizelayout size.
Returns
generated layout.

Definition at line 34 of file snake.c.

References RANDOM.

Referenced by layoutgen().

Here is the caller graph for this function: