1 /********************************************************************
2   Mega Mario SRC
3     created:	2005/09/18
4 	created:	18:9:2005   10:13
5 	author:		Jens Wellmann (c)
6 *********************************************************************/
7 
8 
9 
10 
11 class cBonus
12 {
13 public:
14 	cBonus();
15 	void update();
16 	void init(int _x,int _y,int _type);
17 
18 
19 	float y_speed,x_speed;
20 	float x,y;
21 	SDL_Rect rect;
22 	SDL_Surface *SURFACE[4];
23 
24 	int type,counter;
25 	bool down_touch,left_touch,right_touch,up_touch;
26 	bool online;
27 };
28 
29 
30 class cCrack
31 {
32 public:
33 	cCrack();
34 	void update();
35 	void init(int _x,int _y,int grey);
36 
37 	struct CRACK_STRUCT
38 	{
39 		float y_speed,x_speed;
40 		float x,y;
41 		int grey;
42 	}CRACK[50];
43 	int CRACKcount;
44 	SDL_Rect rect;
45 	SDL_Surface *SURFACE[2];
46 
47 	int counter;
48 };
49 
50 void kickUp(int BOXy,int BOXx);
51 void updateKickUp();
52 
53 
54 class cGlidder
55 {
56 public:
57 	cGlidder();
58 	void update();
59 	void init(int _x,int _y,int _speed_x,int _speed_y);
60 
61 	struct GLID_STRUCT
62 	{
63 		float y_speed,x_speed;
64 		float x,y;
65 		float count;
66 	}GLID[50];
67 	int GLIDcount;
68 	SDL_Rect rect;
69 	SDL_Surface *SURFACE[4];
70 
71 };
72 
73 
74 
75 class cScore
76 {
77 public:
78 	cScore();
79 	void update();
80 	void init(int _x,int _y,int _score);
81 
82 	struct SCORE_STRUCT
83 	{
84 		float x,y;
85 		char* text;
86 		int count;
87 	}SCORE_S[20];
88 	int SCOREcount;
89 };
90