Source:NetHack 5.0.0/include/stairs.h

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to stairs.h from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/include/stairs.h#line12]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1. /* NetHack 5.0	stairs.h	$NHDT-Date: 1685863327 2023/06/04 07:22:07 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.47 $ */
2. /* Copyright (c) 2024 by Pasi Kallinen */
3. /* NetHack may be freely redistributed.  See license for details. */
4. 
5. #ifndef STAIRS_H
6. #define STAIRS_H
7. 
8. typedef struct stairway { /* basic stairway identifier */
9.     coordxy sx, sy;         /* x / y location of the stair */
10.     d_level tolev;        /* where does it go */
11.     boolean up;           /* up or down? */
12.     boolean isladder;     /* ladder or stairway? */
13.     boolean u_traversed;  /* hero has traversed this stair */
14.     struct stairway *next;
15. } stairway;
16. 
17. #endif /* STAIRS_H */
18.