Atrinik Server  4.0
Functions
door.c File Reference
#include <global.h>
#include <arch.h>

Go to the source code of this file.

Functions

int surround_check2 (char **layout, int x, int y, int Xsize, int Ysize)
 
void put_doors (mapstruct *the_map, char **maze, char *doorstyle, RMParms *RP)
 

Detailed Description

Door related functions.

Definition in file door.c.

Function Documentation

void put_doors ( mapstruct the_map,
char **  maze,
char *  doorstyle,
RMParms RP 
)

Add doors to a map.

Parameters
the_mapMap we're adding the doors to.
mazeMaze layout.
doorstyleDoor style to use. If NULL, will choose one randomly.
RPRandom map parameters.

Definition at line 90 of file door.c.

int surround_check2 ( char **  layout,
int  x,
int  y,
int  Xsize,
int  Ysize 
)

Search for doors or walls around a spot.

Parameters
layoutMaze.
xX coordinate to check
yY coordinate to check
XsizeX map size
YsizeY map size
Returns
Combination of flags:
  • 1: Door or wall to left.
  • 2: Door or wall to right.
  • 4: Door or wall above.
  • 8: Door or wall below.

Definition at line 52 of file door.c.