Yet another huge code merge representing the current status of my rewrite. It include...
[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 #include "player.h"
25
26 typedef struct upgrade_type
27   {
28     int kind;
29     base_type base;
30   }
31 upgrade_type;
32
33 typedef struct bullet_type
34   {
35     base_type base;
36   }
37 bullet_type;
38
39 texture_type img_bullet;
40 bitmask* bm_bullet;
41
42 void create_special_bitmasks();
43
44 texture_type img_golden_herring;
45
46 void upgrade_init(upgrade_type *pupgrade, float x, float y, int kind);
47 void upgrade_action(upgrade_type *pupgrade);
48 void upgrade_draw(upgrade_type *pupgrade);
49 void upgrade_collision(upgrade_type *pupgrade, void* p_c_object, int c_object);
50
51 void bullet_init(bullet_type* pbullet, float x, float y, float xm, int dir);
52 void bullet_action(bullet_type *pbullet);
53 void bullet_draw(bullet_type *pbullet);
54 void bullet_collision(bullet_type *pbullet, int c_object);
55
56 #endif /*SUPERTUX_SPECIAL_H*/