|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T m
Length: 1151 (0x47f) Types: TextFile Names: »mines.h«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/Sun/Mines/mines.h«
/* * mines header * * Copyright (c) 1987 Tom Anderson; 20831 Frank Waters Road; * Stanwood, WA 98282. All rights reserved. */ #define BOOL int #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif /* * number of board squares per side */ #define SIDE_SIZE 16 /* * default number of mines */ #define DEFAULT_MINE_QTY 20 /* * board coordinates */ typedef struct { int x; int y; } BoardCoordinate; /* * square state */ typedef struct { BOOL traversed; /* has the poor soul stepped here? */ BOOL mined; /* is this square mined? */ BOOL occupied; /* is this square occupied? */ BOOL unsafe; /* has the player determined a mine here? */ BOOL safe; /* has the player determined no mines here? */ } Square; extern void InitBoard(), DoMove(), InitBoardSW(), DrawSquare(), DrawBoard(), InitLevelSW(), InitMsgSW(), Message(), ParseToolArgs(), InitTool(), RunTool(), MarkSquare(); extern Square * GetSquare(); extern struct tool * MinesTool; extern char * MineWarningMessage(); extern BOOL GameOver; extern struct pr_pos IconOffset; extern int SquareWidth, SquareHeight;