-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathid_us.h
More file actions
38 lines (30 loc) · 1000 Bytes
/
id_us.h
File metadata and controls
38 lines (30 loc) · 1000 Bytes
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
#ifndef __ID_US_H__
#define __ID_US_H__
#define MaxHighName 57
#define MaxScores 7
typedef struct {
char name[MaxHighName + 1];
myint score;
myint completed, episode;
} HighScore;
#define MaxString 128 // Maximum input string size
extern word PrintX,PrintY; // Current printing location in the window
extern word WindowX,WindowY,// Current location of window
WindowW,WindowH;// Current size of window
#define USL_MeasureString VW_MeasurePropString
#define USL_DrawString VW_DrawPropString
extern HighScore Scores[];
void US_Startup(),
US_Shutdown(),
US_InitRndT(boolean randomize),
US_DrawWindow(word x,word y,word w,word h),
US_ClearWindow(void),
US_PrintCentered(const char *s),
US_CPrint(const char *s),
US_CPrintLine(const char *s),
US_Print(const char *s),
US_PrintUnsigned(longword n);
boolean US_LineInput(myint x,myint y,char *buf,const char *def,boolean escok,
myint maxchars,myint maxwidth);
myint US_RndT();
#endif