Atrinik Server  4.0
Functions
door.h File Reference

Go to the source code of this file.

Functions

bool door_try_open (object *op, mapstruct *m, int x, int y, bool test)
 
void door_show_message (object *op, mapstruct *m, int x, int y)
 

Detailed Description

Door related header file.

Definition in file door.h.

Function Documentation

void door_show_message ( object op,
mapstruct m,
int  x,
int  y 
)

Print the locked door message to the specified player.

Parameters
opPlayer.
mMap where the locked door is.
xX position.
yY position.

Definition at line 312 of file door.c.

bool door_try_open ( object op,
mapstruct m,
int  x,
int  y,
bool  test 
)

Open a door (or check whether it can be opened).

Parameters
opObject which will open the door.
mMap where the door is.
xX position of the door.
yY position of the door.
testIf true, only check whether the door can be opened, but do not actually open the door.
Returns
True if door was opened (or can be), false if not and is not possible to open.

Definition at line 231 of file door.c.