dbus function is done
[shermanaquarium] / sherman-aquarium / shermans / bubble.h
1 #ifndef BUBBLE_H
2 #define BUBBLE_H
3
4 /* The number of frames for a bubble */
5 /* Don't change this, if you are not knowing what you are doing! */
6 #define BUBBLES_FRAMES 5
7
8 /* Is this physically illegal? */
9 #define VARIABLE_BUBBLE_SPEED
10
11
12
13 typedef struct {
14     int x;                      /* x position */
15     float y;                    /* y position */
16     float speed;                /* The speed upwards the bubble has.
17                                    Is this physically wrong? Does all bubble
18                                    rise to the surface with the same speed? */
19 } Bubble;
20
21
22 typedef struct
23 {
24     int max_bubbles;
25 } Bubble_settings;
26
27 Bubble_settings *bubble_get_settings_ptr(void);
28 void bubble_init(void);
29 void bubble_exit(void);
30 void bubble_update(void);
31
32 #endif