Atrinik Server  4.0
Functions
rune.c File Reference
#include <global.h>
#include <player.h>
#include <object.h>
#include <rune.h>

Go to the source code of this file.

Functions

int trap_see (object *op, object *trap, int level)
 
int trap_show (object *trap, object *where)
 
int trap_disarm (object *disarmer, object *trap)
 

Detailed Description

All rune related functions.

Definition in file rune.c.

Function Documentation

int trap_disarm ( object disarmer,
object trap 
)

Try to disarm a trap.

Parameters
disarmerPlayer disarming the trap.
trapTrap to disarm.
Returns
1 if trap was disarmed, 0 otherwise.

Definition at line 117 of file rune.c.

int trap_see ( object op,
object trap,
int  level 
)

Should op see trap?

Parameters
opLiving that could spot the trap.
trapTrap that is invisible.
levelLevel.
Return values
0Trap wasn't spotted.
1Trap was spotted.

Definition at line 46 of file rune.c.

int trap_show ( object trap,
object where 
)

Handles showing of a trap.

Parameters
trapThe trap.
whereWhere.
Returns
1 if the trap was shown, 0 otherwise.

Definition at line 73 of file rune.c.