updated contact info in source file headers
[rocksndiamonds.git] / src / libgame / toons.h
1 // ============================================================================
2 // Artsoft Retro-Game Library
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
5 //                  Holger Schemel
6 //                  info@artsoft.org
7 //                  http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // toons.h
10 // ============================================================================
11
12 #ifndef TOONS_H
13 #define TOONS_H
14
15 #include "system.h"
16
17
18 struct ToonScreenInfo
19 {
20   Bitmap *save_buffer;
21   void (*update_function)(void);
22   void (*prepare_backbuffer_function)(void);
23   boolean (*redraw_needed_function)(void);
24
25   struct ToonInfo *toons;
26   int num_toons;
27
28   int startx, starty;
29   int width, height;
30
31   int frame_delay_value;
32 };
33
34 struct ToonInfo
35 {
36   Bitmap *bitmap;
37
38   int src_x, src_y;
39   int width, height;
40   int anim_frames;
41   int anim_start_frame;
42   int anim_delay;
43   int anim_mode;
44   int step_offset;
45   int step_delay;
46
47   char *direction;
48   char *position;
49 };
50
51
52 int getAnimationFrame(int, int, int, int, int);
53
54 void InitToonScreen(Bitmap *, void (*update_function)(void),
55                     void (*prepare_backbuffer_function)(void),
56                     boolean (*redraw_needed_function)(void),
57                     struct ToonInfo *, int, int, int, int, int, int);
58 void InitAnimation(void);
59 void StopAnimation(void);
60 void DoAnimation(void);
61
62 #endif  /* TOONS_H */