File: game.h

package info (click to toggle)
kdrill 6.5deb2-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,340 kB
  • sloc: ansic: 7,636; makefile: 47
file content (45 lines) | stat: -rw-r--r-- 1,388 bytes parent folder | download | duplicates (7)
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
#ifndef _GAME_H
#define _GAME_H

extern TRANSLATION lastpicked;
extern int truevalue;
extern int numberincorrect, totalguessed, totalmissed;

/* enum for modes of buttons */
enum { GUESS_ENGLISH, GUESS_KANJI,GUESS_KANA};

extern int choicesmode,questionmode;
extern int romajiswitch;

extern  TRANSLATION values[NUMBEROFCHOICES];

extern void CountKanji();
extern void SetupGuess();
extern void TallyWrong();
extern void ClearMissed();

extern TRANSLATION pickkanji(); /* only for use from badguess.c */

extern void BackCallback(Widget,XtPointer,XtPointer);
extern void ChangeMode(Widget,XtPointer,XtPointer);
extern void ChangeQuestion(Widget,XtPointer,XtPointer);
extern void Guessvalue(Widget,XEvent *,String *,Cardinal *);
extern void choicescallback(Widget,XtPointer,XtPointer),
	    cheatcallback(Widget,XtPointer,XtPointer);

extern void setenglabel(Widget,TRANSLATION);	/* set english button widgets */
extern void setkanjilabel(Widget,TRANSLATION);	/* set english button widgets */
extern void setkanalabel(Widget,TRANSLATION);	/* set english button widgets */
extern void printallchoices(), printquestion();

extern TRANSLATION picktruevalue();
extern void guessvalue(int);
extern void supercheat();

extern Boolean UseThisKanji(int kanjinum);

/* This function is declared in externs.h, but should be here, sort of
*    extern void setstatus(char *);
*/

#endif /* _GAME_H */