X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fmisc.h;h=0c5ef87feaa9121e0e35a0aa18c265b28cfee847;hp=c4cba8de7145ab664c899cdf506adb4ceef6bcb8;hb=e5c5bf5c4a76a04f9bf64e92227bf2ef969fd25c;hpb=d0893e6987c21c25ec137438a18cfe1288362139 diff --git a/src/misc.h b/src/misc.h index c4cba8de..0c5ef87f 100644 --- a/src/misc.h +++ b/src/misc.h @@ -1,17 +1,14 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* ©1995 Artsoft Development * -* Holger Schemel * -* 33659 Bielefeld-Senne * -* Telefon: (0521) 493245 * -* eMail: aeglos@valinor.owl.de * -* aeglos@uni-paderborn.de * -* q99492@pbhrzx.uni-paderborn.de * +* (c) 1995-98 Artsoft Entertainment * +* Holger Schemel * +* Oststrasse 11a * +* 33604 Bielefeld * +* phone: ++49 +521 290471 * +* email: aeglos@valinor.owl.de * *----------------------------------------------------------* * misc.h * -* * -* Letzte Aenderung: 15.06.1995 * ***********************************************************/ #ifndef MISC_H @@ -19,83 +16,30 @@ #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 ERR_RETURN 0 +#define ERR_EXIT 1 +#define ERR_EXIT_HELP 2 +#define ERR_EXIT_SOUNDSERVER 3 -#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); +boolean FrameReached(unsigned long *, unsigned long); +boolean 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); +void GetOptions(char **); +void Error(int, char *, ...); +void *checked_malloc(unsigned long); #endif