rnd-19980917
[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            1
22
23 #define NEW_RANDOMIZE           -1
24
25 void microsleep(unsigned long);
26 long mainCounter(int);
27 void InitCounter(void);
28 long Counter(void);
29 void WaitCounter(long);
30 void Delay(long);
31 BOOL DelayReached(long *, int);
32 BOOL FrameReached(long *, int);
33 char *int2str(int, int);
34 unsigned int SimpleRND(unsigned int);
35 unsigned int RND(unsigned int);
36 unsigned int InitRND(long);
37 char *GetLoginName(void);
38 void MarkTileDirty(int, int);
39
40 #endif