Go to the source code of this file.
Detailed Description
Door related code.
Definition in file door.c.
Function Documentation
| void close_locked_door |
( |
object * |
op | ) |
|
Close a locked door that has been opened.
- Parameters:
-
Definition at line 234 of file door.c.
Search object for the needed key to open a door/container.
- Parameters:
-
| op | Object to search in. |
| door | The object to find the key for. |
- Returns:
- The key pointer if found, NULL otherwise.
Definition at line 102 of file door.c.
Open a door (or check whether it can be opened).
- Parameters:
-
| op | Object which will open the door. |
| m | Map where the door is. |
| x | X position of the door. |
| y | Y position of the door. |
| mode |
- 0: Check but don't open the door.
- 1: Check and open the door if possible.
|
- Returns:
- 1 if door was opened (or can be), 0 if not and is not possible to open.
Definition at line 42 of file door.c.
Open a locked door. This function checks to see if there are similar locked doors nearby, if the door to open has FLAG_CURSED (cursed 1) set. The nearby doors must also have FLAG_CURSED set.
- Parameters:
-
| op | Door object to open. |
| opener | Object opening the door. |
Definition at line 135 of file door.c.