1 // data types used in backend.c
7 typedef char STRING
[80];
14 char sname
[5]; // As String * 4;
21 char special
; // As String * 1;
47 int x
, y
, width
, height
;
48 int oldX
, oldY
, oldWidth
, oldHeight
, oldVisible
;
49 void (*Move
)(int draw
, int x
, int y
), (*Drag
)(int mode
);
59 OBJECT showpic
[NSQUARES
];
60 OBJECT HandPic
[NTYPES
];
66 OBJECT NotTop
, NotSide
;
77 int ScaleWidth
, DrawWidth
;
78 int CurrentX
, CurrentY
;
82 int Top
, Left
, Height
;
87 MENU MnuVer1
, MnuVer2
;
88 MENU MnuShowOn
, MnuShowOff
;
89 MENU MnuShowLastOn
, MnuShowLastOff
;
90 MENU MnuThreatOn
, MnuThreatOff
;
91 MENU MnuAutoOn
, MnuAutoOff
;
92 MENU MnuEvalOn
, MnuEvalOff
;
93 MENU MnuLVer1
, MnuLVer2
;
94 MENU MnuNotOn
, MnuNotOff
;
95 MENU MnuWhitePlayer
, MnuBlackPlayer
;
96 MENU MnuWhiteComp
, MnuBlackComp
;
97 MENU MnuWhite
, MnuBlack
;
99 MENU MnuNextWhite
, MnuNextBlack
;
100 MENU MnuWeak
, MnuBest
, MnuLessWeak
;
105 void (*Refresh
)(), (*Hide
)(), (*Show
)();
106 void (*Line
)(int x1
, int y1
, int x2
, int y2
, int color
, char *options
);
107 void (*Circle
)(int x
, int y
, int r
);
108 void (*Print
)(char *c
); // prints the passed character
118 // backend.c functions called from menus
128 void SetWhitePlayer();
129 void SetBlackPlayer();
131 void SetWhitePlayer();
133 void SetAutoPromote();
149 void SwitchCompPlayer();
152 void SetDifficulty();
158 void AddSomePieces();
175 // globals in backend.c altered by menus
177 extern STRING Direct
;
178 extern STRING Threat
;
180 extern STRING Computer
;
183 extern STRING Choice
;
184 extern STRING ExtraPiece
;
194 extern INT AutoPromote
;
195 extern INT LionHawkVer
;
196 extern INT LegalMoves
;
198 extern SINGLE NewX
, NewY
;
199 extern INT NewButton
;
201 extern INT ClickPiece
;
204 extern INT Selection
;
206 extern INT MovePiece
;
207 extern INT MoveCount
;
208 extern INT TurnCount
;
212 extern INT BoardSizeX
, BoardSizeY
;
214 extern Piece Pieces
[];
217 extern FORM PieceHelp
;