Devilution
Diablo devolved - magic behind the 1996 computer game
Macros
defs.h File Reference

Go to the source code of this file.

Macros

#define DMAXX   40
 
#define DMAXY   40
 
#define LIGHTSIZE   6912
 
#define GMENU_SLIDER   0x40000000
 
#define GMENU_ENABLED   0x80000000
 
#define MAX_PLRS   4
 
#define MAX_CHARACTERS   10
 
#define MAX_LVLMTYPES   16
 
#define MAX_SEND_STR_LEN   80
 
#define MAX_SPELLS   37
 
#define MAXDEAD   31
 
#define MAXDUNX   112
 
#define MAXDUNY   112
 
#define MAXITEMS   127
 
#define MAXBELTITEMS   8
 
#define MAXLIGHTS   32
 
#define MAXMISSILES   125
 
#define MAXMONSTERS   200
 
#define MAXMULTIQUESTS   4
 
#define MAXOBJECTS   127
 
#define MAXPORTAL   4
 
#define MAXQUESTS   16
 
#define MAXTHEMES   50
 
#define MAXTILES   2048
 
#define MAXTRIGGERS   5
 
#define MAXVISION   32
 
#define MDMAXX   40
 
#define MDMAXY   40
 
#define MAXCHARLEVEL   51
 
#define ITEMTYPES   35
 
#define NUM_INV_GRID_ELEM   40
 
#define INV_SLOT_SIZE_PX   28
 
#define DUR_INDESTRUCTIBLE   255
 
#define VOLUME_MIN   -1600
 
#define VOLUME_MAX   0
 
#define NUMLEVELS   17
 
#define SMITH_ITEMS   20
 
#define SMITH_PREMIUM_ITEMS   6
 
#define SMITH_MAX_VALUE   140000
 
#define SMITH_MAX_PREMIUM_VALUE   140000
 
#define MAXEXP   2000000000
 
#define MAXRESIST   75
 
#define GOLD_SMALL_LIMIT   1000
 
#define GOLD_MEDIUM_LIMIT   2500
 
#define GOLD_MAX_LIMIT   5000
 
#define PLR_NAME_LEN   32
 
#define MAXPATHNODES   300
 
#define MAX_PATH_LENGTH   25
 
#define FILEBUFF   ((256*1024)+3)
 
#define PMSG_COUNT   8
 
#define GAME_ID   ((int)'DRTL')
 
#define PAL8_BLUE   128
 
#define PAL8_RED   136
 
#define PAL8_YELLOW   144
 
#define PAL8_ORANGE   152
 
#define PAL16_BEIGE   160
 
#define PAL16_BLUE   176
 
#define PAL16_YELLOW   192
 
#define PAL16_ORANGE   208
 
#define PAL16_RED   224
 
#define PAL16_GRAY   240
 
#define SCREEN_WIDTH   640
 
#define SCREEN_HEIGHT   480
 
#define ZOOM_WIDTH   384
 
#define ZOOM_HEIGHT   224
 
#define SCREEN_BPP   8
 
#define BORDER_LEFT   64
 
#define BORDER_TOP   160
 
#define BORDER_RIGHT   64
 
#define BORDER_BOTTOM   16
 
#define SCREEN_X   BORDER_LEFT
 
#define SCREEN_Y   BORDER_TOP
 
#define BUFFER_WIDTH   (BORDER_LEFT + SCREEN_WIDTH + BORDER_RIGHT)
 
#define BUFFER_HEIGHT   (BORDER_TOP + SCREEN_HEIGHT + BORDER_BOTTOM)
 
#define TILE_SIZE   32
 
#define PANEL_WIDTH   640
 
#define PANEL_HEIGHT   128
 
#define PANEL_TOP   (SCREEN_HEIGHT - PANEL_HEIGHT)
 
#define PANEL_LEFT   (SCREEN_WIDTH - PANEL_WIDTH) / 2
 
#define PANEL_X   (SCREEN_X + PANEL_LEFT)
 
#define PANEL_Y   (SCREEN_Y + PANEL_TOP)
 
#define SPANEL_WIDTH   320
 
#define SPANEL_HEIGHT   352
 
#define PANELS_COVER   (SCREEN_WIDTH <= PANEL_WIDTH && SCREEN_HEIGHT <= SPANEL_HEIGHT + PANEL_HEIGHT)
 
#define RIGHT_PANEL   (SCREEN_WIDTH - SPANEL_WIDTH)
 
#define RIGHT_PANEL_X   (SCREEN_X + RIGHT_PANEL)
 
#define VIEWPORT_HEIGHT   SCREEN_HEIGHT
 
#define DIALOG_TOP   ((SCREEN_HEIGHT - PANEL_HEIGHT) / 2 - 18)
 
#define DIALOG_Y   (SCREEN_Y + DIALOG_TOP)
 
#define SCREENXY(x, y)   ((x) + SCREEN_X + ((y) + SCREEN_Y) * BUFFER_WIDTH)
 
#define MemFreeDbg(p)
 
#define assert(exp)   ((void)0)
 
#define ERR_DLG(title, text)   ErrDlg(title, text, __FILE__, __LINE__)
 
#define ALIGN_BY_1
 
#define SwapLE32   SDL_SwapLE32
 
#define SwapLE16   SDL_SwapLE16
 
#define ErrSdl()   ErrDlg("SDL Error", SDL_GetError(), __FILE__, __LINE__)
 

Detailed Description

Global definitions and Macros.

Definition in file defs.h.