Crossfire Server, Trunk
snake.cpp File Reference
#include "global.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
+ Include dependency graph for snake.cpp:

Go to the source code of this file.

Functions

char ** make_snake_layout (int xsize, int ysize, int _unused_option, int _unused_layers)
 

Detailed Description

Function Documentation

◆ make_snake_layout()

char** make_snake_layout ( int  xsize,
int  ysize,
int  _unused_option,
int  _unused_layers 
)

Generate a snake-like layout.

Parameters
xsize
ysizelayout size.
_unused_optionunused.
_unused_layersunused.
Returns
generated layout.

Definition at line 36 of file snake.cpp.

References RANDOM, and nlohmann::detail::void().

Referenced by layoutgen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: