Fandom

Wikihack

Source:Vis tab.h

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Below is the full text to src/vis_tab.h from NetHack 3.4.3, as generated when the VISION_TABLES symbol is enabled at compile time. To link to a particular line, write [[vis_tab.h#line123]], for example.

If the VISION_TABLES symbol is not defined at compile time, makedefs produces a shorter form of this file.

/* This source file is generated by 'makedefs'.  Do not edit. */

A clean distribution of NetHack does not include this file. It is generated at compile time.

#ifdef VISION_TABLES

If VISION_TABLES was not defined when makedefs was compiled, the following lines will not be present:


/* Close */
#define CLOSE_MAX_SB_DY 20	/* |src row - block row| - 1	*/
#define CLOSE_MAX_SB_DX 80	/* |src col - block col|	*/
#define CLOSE_MAX_BC_DY 21	/* |block row - check row|	*/
typedef struct {
    unsigned char close[CLOSE_MAX_SB_DX][CLOSE_MAX_BC_DY];
} close2d;
extern close2d close_table[CLOSE_MAX_SB_DY];

/* Far */
#define FAR_MAX_SB_DY 21	/* |src row - block row|	*/
#define FAR_MAX_SB_DX 79	/* |src col - block col| - 1	*/
#define FAR_MAX_BC_DY 20	/* |block row - check row| - 1	*/
typedef struct {
    unsigned char far_q[FAR_MAX_SB_DX][FAR_MAX_BC_DY];
} far2d;
extern far2d far_table[FAR_MAX_SB_DY];

These last lines are present unconditionally.


#endif /* VISION_TABLES */
The NetHack General Public License applies to screenshots, source code and other content from NetHack.

Also on Fandom

Random Wiki