X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fmisc.h;h=1a2f29f06d23a20f9124cf9a6f85b451a8a82591;hp=685c2b838ead454d2b95569303dfb5c51515a579;hb=b7d31643c9c84104fb3ebef778e545928610ff65;hpb=a5a03e15b395ba1942c180d1cd0d3a4f43b87f56 diff --git a/src/misc.h b/src/misc.h index 685c2b83..1a2f29f0 100644 --- a/src/misc.h +++ b/src/misc.h @@ -17,69 +17,6 @@ #include "main.h" -/* values for cartoon figures */ -#define NUM_TOONS 6 - -#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 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 INIT_COUNTER 0 #define READ_COUNTER_100 1 #define READ_COUNTER_1000 2 @@ -96,18 +33,10 @@ void WaitCounter2(long); void Delay(long); BOOL DelayReached(long *, int); BOOL FrameReached(long *, int); -unsigned long be2long(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); - #endif