Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1664 pj 1
 #ifndef __ILLA_H__
2
#define __ILLA_H__
3
//----------------BEGIN------------------
4
 
5
// *** Librerie S.Ha.R.K ***
6
// *** Librerie Standard C ***
7
// *** Librerie FAB ***
8
#include"fab_lib/fab_grx.h"
9
#include"fab_lib/fab_tool.h"
10
// *** Librerie BCA ***
11
#include <stdlib.h>
12
 
13
 
14
// ---------------------------------
15
// *** Elementi Grafici Generici ***
16
// ---------------------------------
17
 
18
// IMMAGINI:
19
FAB_IMAGE* image_leaf;
20
FAB_IMAGE* image_bg;
21
FAB_IMAGE* image_player;
22
FAB_IMAGE* image_enemy;
23
 
24
 
25
 
26
// BORDI:
27
FAB_BORDER* border_blu7;
28
 
29
 
30
// FRAME:
31
FAB_FRAME* frame_scorer;
32
 
33
 
34
 
35
 
36
 
37
 
38
 
39
#define UPDATE_PERIOD   500000
40
#define UPDATE_WCET     50000
41
 
42
#define Max_Leaves  9
43
#define player_image_width  45
44
#define player_image_height  45
45
#define enemy_image_width  45
46
#define enemy_image_height  45
47
 
48
#define leaf_image_width 120
49
#define leaf_image_height  60
50
#define PLAYER_INITIAL_POSITION_X  200
51
#define PLAYER_INITIAL_POSITION_Y  75
52
 
53
#define ENEMY_INITIAL_POSITION_X  600
54
#define ENEMY_INITIAL_POSITION_Y  75
55
 
56
 
57
 
58
#define MAX_DOWN_LEVELS 3
59
#define IMAGE_OFFSET 20
60
#define SCREEN_WIDTH  1024
61
#define SCREEN_HEIGHT 768
62
 
63
#define PLAY_AREA_WIDTH  800
64
#define PLAY_AREA_HEIGHT 600
65
 
66
struct {
67
 int x0;
68
 int y0;
69
 int x1;
70
 int y1;
71
}leaves[Max_Leaves];
72
 
73
struct
74
{
75
  int x;
76
  int y;
77
  int iLevel;
78
  int iLeaf;
79
}player;
80
 
81
struct
82
{
83
 int x;
84
 int y;
85
}enemy;
86
 
87
 
88
/* useful colors... */
89
int white;
90
int black;
91
int red;
92
int gray;
93
 
94
// MUTEX:
95
mutex_t grx_mutex;
96
mutex_t player_mutex;
97
mutex_t leaves_mutex[Max_Leaves];
98
 
99
PID g_UpPlayer;
100
PID g_DownPlayer;
101
 
102
int bUp;
103
int bDown;
104
int iScore;
105
int iScoreLevel;
106
int iScoreDown;
107
int app_mutex_init(mutex_t *m);
108
 
109
//for jetcontrol
110
void init_jetcontrol();
111
void scenario_jetcontrol();
112
 
113
 
114
// FUNZIONI GESTIONE RISORSE DI MEMORIA:
115
void kern_init_bca();
116
 
117
 
118
 
119
//------------------END------------------
120
#endif
121