I did my best to exempt some of the bigger aligned blocks from the reformatting using the /* clang-format off */ and /* clang-format on */ tags. Probably some that shouldn't have been formatted were anyway; if you encounter them, please fix. The clang-format tags were left in on the basis that it's much easier to prune those out later than to put them back in, and it means that, modulo my custom version of clang-format, I should be able to run clang-format on the source tree again without changing anything, now that Pat has fixed the VA_DECL issues.
67 lines
2.3 KiB
C
67 lines
2.3 KiB
C
/* NetHack 3.6 pctiles.h $NHDT-Date$ $NHDT-Branch$:$NHDT-Revision$ */
|
|
/* NetHack 3.6 pctiles.h $Date: 2009/05/06 10:49:40 $ $Revision: 1.4 $ */
|
|
/* SCCS Id: @(#)pctiles.h 3.5 1994/04/04 */
|
|
/* Copyright (c) NetHack PC Development Team 1993, 1994 */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
/* */
|
|
/*
|
|
* pctiles.h - Definitions for PC graphical tile support
|
|
*
|
|
*Edit History:
|
|
* Initial Creation M. Allison 93/10/30
|
|
*
|
|
*/
|
|
|
|
#ifdef USE_TILES
|
|
#define NETHACK_PLANAR_TILEFILE "NetHack1.tib" /* Planar style tiles */
|
|
#define NETHACK_PACKED_TILEFILE "NetHack2.tib" /* Packed style tiles */
|
|
#define NETHACK_OVERVIEW_TILEFILE "NetHacko.tib" /* thin overview tiles */
|
|
|
|
#define ROWS_PER_TILE TILE_Y
|
|
#define COLS_PER_TILE TILE_X
|
|
#define EMPTY_TILE -1
|
|
#define TIBHEADER_SIZE 1024 /* Use this for size, allows expansion */
|
|
#define PLANAR_STYLE 0
|
|
#define PACKED_STYLE 1
|
|
#define DJGPP_COMP 0
|
|
#define MSC_COMP 1
|
|
#define BC_COMP 2
|
|
#define OTHER_COMP 10
|
|
|
|
struct tibhdr_struct {
|
|
char ident[80]; /* Identifying string */
|
|
char timestamp[26]; /* Ascii timestamp */
|
|
char tilestyle; /* 0 = planar, 1 = pixel */
|
|
char compiler; /* 0 = DJGPP, 1 = MSC, 2= BC etc. see above */
|
|
short tilecount; /* number of tiles in file */
|
|
short numcolors; /* number of colors in palette */
|
|
char palette[256 * 3]; /* palette */
|
|
};
|
|
|
|
/* Note on packed style tile file:
|
|
* Each record consists of one of the following arrays:
|
|
* char packtile[TILE_Y][TILE_X];
|
|
*/
|
|
|
|
extern void FDECL(CloseTileFile, (BOOLEAN_P));
|
|
extern int FDECL(OpenTileFile, (char *, BOOLEAN_P));
|
|
extern int FDECL(ReadTileFileHeader, (struct tibhdr_struct *, BOOLEAN_P));
|
|
|
|
#ifdef PLANAR_FILE
|
|
#ifdef SCREEN_VGA
|
|
extern int FDECL(ReadPlanarTileFile, (int, struct planar_cell_struct **));
|
|
extern int FDECL(ReadPlanarTileFile_O,
|
|
(int, struct overview_planar_cell_struct **));
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef PACKED_FILE
|
|
extern int FDECL(ReadPackedTileFile, (int, char (*)[TILE_X]));
|
|
#endif
|
|
|
|
extern short glyph2tile[MAX_GLYPH]; /* in tile.c (made from tilemap.c) */
|
|
|
|
#endif /* USE_TILES */
|
|
|
|
/* pctiles.h */
|