forked from CatacombGames/TheCatacomb
-
Notifications
You must be signed in to change notification settings - Fork 6
/
catacomb.h
108 lines (79 loc) · 2.97 KB
/
catacomb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* The Catacomb Source Code
* Copyright (C) 1993-2014 Flat Rock Software
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __CATACOMB_H__
#define __CATACOMB_H__
#include "catdefs.h"
#include "pcrlib.h"
extern void initobjects();
extern void refresh();
extern void playloop();
extern int US_CheckParm(char *,char **);
extern void dofkeys();
extern void loadlevel();
extern void clearold();
extern void restore();
extern void doactive();
extern void doinactive();
extern void printscore();
extern void printhighscore();
extern void printshotpower();
extern void printbody();
extern void givepotion();
extern void givebolt();
extern void givenuke();
extern void eraseobj();
extern void drawobj();
extern void doall();
typedef enum {quited,killed,reseted,victorious} exittype;
extern exittype gamexit; /*determines what to do after playloop*/
extern char altmeters[14][14];
extern char meters[14][14];
extern dirtype opposite[9];
extern int oldtiles [NUMTILES]; /*tile displayed last refresh*/
extern int background[87][86]; /*base map*/
extern int view[87][86]; /*base map with objects drawn in*/
extern int originx, originy; /*current world location of ul corn*/
extern byte priority [maxpics+1]; /*tile draw overlap priorities*/
extern sword items[6],saveitems[6];
extern int shotpower; /*0-13 characters in power meter*/
extern int side; /*which side shots come from*/
extern int boltsleft; /*number of shots left in a bolt*/
extern activeobj o[maxobj+1],saveo[1]; /*everything that moves is here*/
extern objtype obj , altobj; /*total info about objecton and alt*/
extern int altnum; /*o[#] of altobj*/
extern int numobj,objecton; /*number of objects in o now*/
extern objdeftype objdef [lastclass];
extern boolean playdone, leveldone;
extern boolean tempb;
extern char *tempp;
extern int chkx,chky,chkspot; /*spot being checked by walk*/
extern word frameon;
extern char *grmem;
extern classtype clvar;
extern int VGAPAL; // just to make pcrlib happy
extern boolean exitdemo,resetgame;
extern statetype gamestate;
extern ControlStruct ctrl;
extern char *pics, *picsexact;
extern unsigned EGADATASTART;
extern sdword savescore;
//NOLAN ADDED
extern boolean GODMODE;
extern int _argc;
extern char** _argv;
#endif