1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * (c) 1995-98 Artsoft Entertainment *
8 * phone: ++49 +521 290471 *
9 * email: aeglos@valinor.owl.de *
10 *----------------------------------------------------------*
12 ***********************************************************/
19 #define INIT_COUNTER 0
20 #define READ_COUNTER 1
22 #define NEW_RANDOMIZE -1
25 #define ERR_WARN (1 << 0)
26 #define ERR_EXIT (1 << 1)
27 #define ERR_HELP (1 << 2)
28 #define ERR_SOUNDSERVER (1 << 3)
29 #define ERR_EXIT_HELP (ERR_EXIT | ERR_HELP)
30 #define ERR_EXIT_SOUNDSERVER (ERR_EXIT | ERR_SOUNDSERVER)
32 void InitCounter(void);
33 unsigned long Counter(void);
34 void Delay(unsigned long);
35 boolean FrameReached(unsigned long *, unsigned long);
36 boolean DelayReached(unsigned long *, unsigned long);
37 void WaitUntilDelayReached(unsigned long *, unsigned long);
38 char *int2str(int, int);
39 unsigned int SimpleRND(unsigned int);
40 unsigned int RND(unsigned int);
41 unsigned int InitRND(long);
42 char *getLoginName(void);
43 char *getHomeDir(void);
44 void MarkTileDirty(int, int);
45 void GetOptions(char **);
46 void Error(int, char *, ...);
47 void *checked_malloc(unsigned long);
48 char *getKeyNameFromKeySym(KeySym);
49 char *getX11KeyNameFromKeySym(KeySym);
50 KeySym getKeySymFromX11KeyName(char *);
51 char *getJoyNameFromJoySymbol(int);
52 int getJoySymbolFromJoyName(char *);