1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back! *
3 *----------------------------------------------------------*
4 * ©1995 Artsoft Development *
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 *----------------------------------------------------------*
14 * Letzte Aenderung: 15.06.1995 *
15 ***********************************************************/
22 /* values for cartoon figures */
25 #define DWARF_XSIZE 40
26 #define DWARF_YSIZE 48
30 #define DWARF_FRAMES 8
32 #define DWARF_STEPSIZE 4
33 #define JUMPER_XSIZE 48
34 #define JUMPER_YSIZE 56
37 #define JUMPER_FRAMES 8
39 #define JUMPER_STEPSIZE 4
40 #define CLOWN_XSIZE 80
41 #define CLOWN_YSIZE 110
44 #define CLOWN_FRAMES 1
46 #define CLOWN_STEPSIZE 4
55 #define BIRD_STEPSIZE 4
57 #define ANIMDIR_LEFT 1
58 #define ANIMDIR_RIGHT 2
60 #define ANIMDIR_DOWN 8
63 #define ANIMPOS_LEFT 1
64 #define ANIMPOS_RIGHT 2
66 #define ANIMPOS_DOWN 8
67 #define ANIMPOS_UPPER 16
70 #define ANIM_CONTINUE 1
78 int frames_per_second;
85 #define NEW_RANDOMIZE -1
87 void microsleep(unsigned int);
88 unsigned int be2int(unsigned int *);
89 char *int2str(int, int);
90 unsigned int RND(unsigned int);
91 unsigned int InitRND(int);
92 char *GetLoginName(void);
94 void InitAnimation(void);
95 void StopAnimation(void);
96 void DoAnimation(void);
97 void HandleAnimation(int);
98 BOOL AnimateToon(int, BOOL);
99 void DrawAnim(int, int, int, int, int, int, int, int);