arrays are dynamic now, fixed bugs, more code cleanups
[supertux.git] / src / special.h
1 //
2 // C Interface: special
3 //
4 // Description: 
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #define BULLET_STARTING_YM 1
14 #define BULLET_XM 5
15
16 #ifndef SUPERTUX_SPECIAL_H
17 #define SUPERTUX_SPECIAL_H
18
19 #include <SDL.h>
20 #include "bitmask.h"
21 #include "type.h"
22 #include "texture.h"
23 #include "collision.h"
24
25 typedef struct upgrade_type
26   {
27     int kind;
28     base_type base;
29   }
30 upgrade_type;
31
32 typedef struct bullet_type
33   {
34     base_type base;
35   }
36 bullet_type;
37
38 texture_type img_bullet;
39 bitmask* bm_bullet;
40
41 void create_special_bitmasks();
42
43 texture_type img_golden_herring;
44
45 void upgrade_init(upgrade_type *pupgrade);
46 void upgrade_action(upgrade_type *pupgrade);
47 void upgrade_draw(upgrade_type *pupgrade);
48 void upgrade_collision(upgrade_type *pupgrade, void* p_c_object, int c_object);
49
50 void bullet_init(bullet_type *pbullet);
51 void bullet_action(bullet_type *pbullet);
52 void bullet_draw(bullet_type *pbullet);
53 void bullet_collision(bullet_type *pbullet, int c_object);
54
55 #endif /*SUPERTUX_SPECIAL_H*/