Free Hero Mesh

Check-in [7b83e02ee7]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Improvement of comments in heromesh.h
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7b83e02ee778c86d74ca2e267e8c89e623bab9f1
User & Date: user on 2021-01-04 06:29:55
Other Links: manifest | tags
Context
2021-01-04
07:15
Implement the inventory display check-in: 0ba0570c8c user: user tags: trunk
06:29
Improvement of comments in heromesh.h check-in: 7b83e02ee7 user: user tags: trunk
02:44
Implement replay marks. check-in: 0393bebb68 user: user tags: trunk
Changes

Modified heromesh.h from [02acfa099d] to [512c09304e].

82
83
84
85
86
87
88

89



90
91

92
93
94
95
96
97
98
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);
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);
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
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;