1a2f29f06d23a20f9124cf9a6f85b451a8a82591
[rocksndiamonds.git] / src / misc.h
1 /***********************************************************
2 *  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
3 *----------------------------------------------------------*
4 *  ©1995 Artsoft Development                               *
5 *        Holger Schemel                                    *
6 *        33659 Bielefeld-Senne                             *
7 *        Telefon: (0521) 493245                            *
8 *        eMail: aeglos@valinor.owl.de                      *
9 *               aeglos@uni-paderborn.de                    *
10 *               q99492@pbhrzx.uni-paderborn.de             *
11 *----------------------------------------------------------*
12 *  misc.h                                                  *
13 ***********************************************************/
14
15 #ifndef MISC_H
16 #define MISC_H
17
18 #include "main.h"
19
20 #define INIT_COUNTER            0
21 #define READ_COUNTER_100        1
22 #define READ_COUNTER_1000       2
23
24 #define NEW_RANDOMIZE           -1
25
26 void microsleep(unsigned long);
27 long mainCounter(int);
28 void InitCounter(void);
29 long Counter(void);
30 long Counter2(void);
31 void WaitCounter(long);
32 void WaitCounter2(long);
33 void Delay(long);
34 BOOL DelayReached(long *, int);
35 BOOL FrameReached(long *, int);
36 char *int2str(int, int);
37 unsigned int SimpleRND(unsigned int);
38 unsigned int RND(unsigned int);
39 unsigned int InitRND(long);
40 char *GetLoginName(void);
41
42 #endif