* q99492@pbhrzx.uni-paderborn.de *
*----------------------------------------------------------*
* misc.h *
-* *
-* Letzte Aenderung: 15.06.1995 *
***********************************************************/
#ifndef MISC_H
#include "main.h"
-/* values for cartoon figures */
-#define NUM_TOONS 6
+#define INIT_COUNTER 0
+#define READ_COUNTER 1
-#define DWARF_XSIZE 40
-#define DWARF_YSIZE 48
-#define DWARF_X 2
-#define DWARF_Y 72
-#define DWARF2_Y 186
-#define DWARF_FRAMES 8
-#define DWARF_FPS 10
-#define DWARF_STEPSIZE 4
-#define JUMPER_XSIZE 48
-#define JUMPER_YSIZE 56
-#define JUMPER_X 2
-#define JUMPER_Y 125
-#define JUMPER_FRAMES 8
-#define JUMPER_FPS 10
-#define JUMPER_STEPSIZE 4
-#define CLOWN_XSIZE 80
-#define CLOWN_YSIZE 110
-#define CLOWN_X 327
-#define CLOWN_Y 10
-#define CLOWN_FRAMES 1
-#define CLOWN_FPS 10
-#define CLOWN_STEPSIZE 4
-#define BIRD_XSIZE 32
-#define BIRD_YSIZE 30
-#define BIRD1_X 2
-#define BIRD1_Y 2
-#define BIRD2_X 2
-#define BIRD2_Y 37
-#define BIRD_FRAMES 8
-#define BIRD_FPS 20
-#define BIRD_STEPSIZE 4
+#define NEW_RANDOMIZE -1
-#define ANIMDIR_LEFT 1
-#define ANIMDIR_RIGHT 2
-#define ANIMDIR_UP 4
-#define ANIMDIR_DOWN 8
-
-#define ANIMPOS_ANY 0
-#define ANIMPOS_LEFT 1
-#define ANIMPOS_RIGHT 2
-#define ANIMPOS_UP 4
-#define ANIMPOS_DOWN 8
-#define ANIMPOS_UPPER 16
-
-#define ANIM_START 0
-#define ANIM_CONTINUE 1
-#define ANIM_STOP 2
-
-struct AnimInfo
-{
- int width, height;
- int src_x, src_y;
- int frames;
- int frames_per_second;
- int stepsize;
- BOOL pingpong;
- int direction;
- int position;
-};
-
-#define NEW_RANDOMIZE -1
-
-void microsleep(unsigned long);
-unsigned long be2long(unsigned long *);
+void InitCounter(void);
+unsigned long Counter(void);
+void Delay(unsigned long);
+BOOL FrameReached(unsigned long *, unsigned long);
+BOOL DelayReached(unsigned long *, unsigned long);
+void WaitUntilDelayReached(unsigned long *, unsigned long);
char *int2str(int, int);
+unsigned int SimpleRND(unsigned int);
unsigned int RND(unsigned int);
unsigned int InitRND(long);
char *GetLoginName(void);
-
-void InitAnimation(void);
-void StopAnimation(void);
-void DoAnimation(void);
-void HandleAnimation(int);
-BOOL AnimateToon(int, BOOL);
-void DrawAnim(int, int, int, int, int, int, int, int);
+void MarkTileDirty(int, int);
#endif