7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2003
9 // Copyright: See COPYING file that comes with this distribution
13 #ifndef SUPERTUX_WORLD_H
14 #define SUPERTUX_WORLD_H
19 typedef struct bouncy_distro_type /*It is easier to read the sources IMHO, if we don't write something like int a,b,c; */
25 extern texture_type img_distro[4];
27 void bouncy_distro_init(bouncy_distro_type* pbouncy_distro, float x, float y);
28 void bouncy_distro_action(bouncy_distro_type* pbouncy_distro);
29 void bouncy_distro_draw(bouncy_distro_type* pbouncy_distro);
30 void bouncy_distro_collision(bouncy_distro_type* pbouncy_distro, int c_object);
32 #define BOUNCY_BRICK_MAX_OFFSET 8
33 #define BOUNCY_BRICK_SPEED 0.9
35 typedef struct broken_brick_type
42 void broken_brick_init(broken_brick_type* pbroken_brick, float x, float y, float xm, float ym);
43 void broken_brick_action(broken_brick_type* pbroken_brick);
44 void broken_brick_draw(broken_brick_type* pbroken_brick);
46 typedef struct bouncy_brick_type
55 void bouncy_brick_init(bouncy_brick_type* pbouncy_brick, float x, float y);
56 void bouncy_brick_action(bouncy_brick_type* pbouncy_brick);
57 void bouncy_brick_draw(bouncy_brick_type* pbouncy_brick);
59 typedef struct floating_score_type
67 void floating_score_init(floating_score_type* pfloating_score, float x, float y, int s);
68 void floating_score_action(floating_score_type* pfloating_score);
69 void floating_score_draw(floating_score_type* pfloating_score);
71 #endif /*SUPERTUX_WORLD_H*/