… | |
… | |
174 | living ACC (RO, last_stats); /* Last stats as sent to client */ |
174 | living ACC (RO, last_stats); /* Last stats as sent to client */ |
175 | float ACC (RW, last_speed); /* Last speed as sent to client */ |
175 | float ACC (RW, last_speed); /* Last speed as sent to client */ |
176 | sint16 ACC (RW, last_resist[NROFATTACKS]);/* last resist values sent to client */ |
176 | sint16 ACC (RW, last_resist[NROFATTACKS]);/* last resist values sent to client */ |
177 | sint64 ACC (RW, last_skill_exp[NUM_SKILLS]);/* shadow register. if != exp. obj update client */ |
177 | sint64 ACC (RW, last_skill_exp[NUM_SKILLS]);/* shadow register. if != exp. obj update client */ |
178 | |
178 | |
179 | bool ACC (RW, force_face0); // client workaround for buggy checksum calculation in gcfclient |
|
|
180 | bool ACC (RW, force_bad_checksum); // client workaround for buggy checksum calculation in gcfclient |
|
|
181 | bool ACC (RW, force_image_newmap); // client workaround for client not redrawing map on image upload |
|
|
182 | bool ACC (RW, enable_bg_scrub); // client workaround, gcfclient becomes unusable if you send it images |
|
|
183 | |
|
|
184 | bool ACC (RW, afk); /* player is afk */ |
179 | bool ACC (RW, afk); /* player is afk */ |
185 | bool ACC (RW, facecache); /* If true, client is caching images */ |
|
|
186 | bool ACC (RW, sent_scroll); |
180 | bool ACC (RW, sent_scroll); |
187 | bool ACC (RW, sound); /* does the client want sound */ |
181 | bool ACC (RW, sound); /* does the client want sound */ |
188 | bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */ |
182 | bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */ |
189 | bool ACC (RW, plugincmd); // extend the protocol through a plug-in */ |
183 | bool ACC (RW, plugincmd); // extend the protocol through a plug-in */ |
190 | bool ACC (RW, mapinfocmd); // return map info and send map change info |
184 | bool ACC (RW, mapinfocmd); // return map info and send map change info |
191 | uint8_t ACC (RW, extcmd); // call into extensions/plugins |
185 | uint8_t ACC (RW, extcmd); // call into extensions/plugins |
192 | bool ACC (RW, extmap); // extend map comamnd with extra data |
|
|
193 | bool ACC (RW, buggy_mapscroll); // client crashes on large mapscrolls |
|
|
194 | bool ACC (RW, darkness); /* True if client wants darkness information */ |
|
|
195 | bool ACC (RW, image2); /* Client wants image2/face2 commands */ |
|
|
196 | uint8_t ACC (RW, fxix); // client implements fx and ix (face|image extended) commands |
|
|
197 | bool ACC (RW, update_look); /* If true, we need to send the look window */ |
186 | bool ACC (RW, update_look); /* If true, we need to send the look window */ |
198 | bool ACC (RW, has_readable_type); /* If true client accept additional text information */ |
187 | bool ACC (RW, has_readable_type); /* If true client accept additional text information */ |
199 | /* used to arrange text in books, scrolls, or scripted dialogs */ |
188 | /* used to arrange text in books, scrolls, or scripted dialogs */ |
200 | bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */ |
189 | bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */ |
201 | bool ACC (RW, smoothing); // trt-style smoothing |
190 | bool ACC (RW, smoothing); // deliantra-style smoothing |
202 | bool ACC (RW, can_msg); // trt-style text messages |
|
|
203 | |
191 | |
204 | bool ACC (RW, force_newmap); // force a newmap before next map update |
192 | bool ACC (RW, force_newmap); // force a newmap before next map update |
205 | uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */ |
193 | uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */ |
206 | uint32 ACC (RW, cs_version), ACC (RW, sc_version); /* versions of the client */ |
194 | uint32 ACC (RW, cs_version), ACC (RW, sc_version); /* versions of the client */ |
207 | uint16 ACC (RW, look_position); /* start of drawing of look window */ |
195 | uint16 ACC (RW, look_position); /* start of drawing of look window */ |
… | |
… | |
216 | shstr ACC (RW, version); // CF+ client name/version |
204 | shstr ACC (RW, version); // CF+ client name/version |
217 | uint8 ACC (RW, faceset); // CF+ selected faceset |
205 | uint8 ACC (RW, faceset); // CF+ selected faceset |
218 | |
206 | |
219 | tstamp ACC (RW, last_send); // last data send on socket. |
207 | tstamp ACC (RW, last_send); // last data send on socket. |
220 | |
208 | |
|
|
209 | float ACC (RW, socket_timeout); /* after how many seconds of no ack do we declare dead */ |
221 | int ACC (RW, rate_avail); // current rate balance |
210 | int ACC (RW, rate_avail); // current rate balance |
222 | int ACC (RW, max_rate); // max. # of bytes to send per tick |
211 | int ACC (RW, max_rate); // max. # of bytes to send per tick |
223 | faceidx ACC (RW, scrub_idx); // which face to send next |
212 | faceidx ACC (RW, scrub_idx); // which face to send next |
224 | int ACC (RW, bg_scrub); // how many ticks till the next background face send |
213 | int ACC (RW, bg_scrub); // how many ticks till the next background face send |
225 | |
214 | |
… | |
… | |
305 | void send_packet (packet &sl); |
294 | void send_packet (packet &sl); |
306 | |
295 | |
307 | void send_drawinfo (const char *msg, int flags = NDI_BLACK); |
296 | void send_drawinfo (const char *msg, int flags = NDI_BLACK); |
308 | |
297 | |
309 | MTH void send_face (faceidx facenum, int pri = 0); |
298 | MTH void send_face (faceidx facenum, int pri = 0); |
310 | MTH void send_image (faceidx facenum); |
|
|
311 | MTH void send_faces (object *ob); |
299 | MTH void send_faces (object *ob); |
312 | MTH void send_animation (short anim_num); |
300 | MTH void send_animation (short anim_num); |
313 | void send_msg (int color, const char *type, const char *msg); |
301 | void send_msg (int color, const char *type, const char *msg); |
314 | |
302 | |
315 | MTH void play_sound (faceidx sound, int dx = 0, int dy = 0); |
303 | MTH void play_sound (faceidx sound, int dx = 0, int dy = 0); |