82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
// == picture ==
extern SDL_Surface*screen;
extern Uint16 picture_size;
extern int left_margin;
void draw_picture(int x,int y,Uint16 img);
void draw_text(int x,int y,const unsigned char*t,int bg,int fg);
void draw_cell(int x,int y);
const char*screen_prompt(const char*txt);
int screen_message(const char*txt);
void load_pictures(void);
int scrollbar(int*cur,int page,int max,SDL_Event*ev,SDL_Rect*re);
void draw_popup(const unsigned char*txt);
|
>
>
>
>
|
|
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
// == picture ==
extern SDL_Surface*screen;
extern Uint16 picture_size;
extern int left_margin;
// Use only when screen is unlocked
void draw_picture(int x,int y,Uint16 img);
void draw_cell(int x,int y);
// Use only when screen is locked
void draw_text(int x,int y,const unsigned char*t,int bg,int fg);
const char*screen_prompt(const char*txt);
int screen_message(const char*txt);
void load_pictures(void);
int scrollbar(int*cur,int page,int max,SDL_Event*ev,SDL_Rect*re);
void draw_popup(const unsigned char*txt);
|
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
Uint16 hard[4];
Uint8 x,y,dir;
Animation*anim;
Value misc1,misc2,misc3,misc4,misc5,misc6,misc7;
Value uservars[0];
} Object;
// Some objects may remain in memory for animation purposes even after they have been
// destroyed. In this case, their "generation" value is zero, and they will always
// have the OF_DESTROYED flag.
typedef struct {
Uint16 class,value;
Uint8 image;
} Inventory;
extern Uint32 max_objects;
extern Uint32 generation_number;
|
<
<
<
<
|
214
215
216
217
218
219
220
221
222
223
224
225
226
227
|
Uint16 hard[4];
Uint8 x,y,dir;
Animation*anim;
Value misc1,misc2,misc3,misc4,misc5,misc6,misc7;
Value uservars[0];
} Object;
typedef struct {
Uint16 class,value;
Uint8 image;
} Inventory;
extern Uint32 max_objects;
extern Uint32 generation_number;
|