… | |
… | |
196 | uint8_t ACC (RW, fxix); // client implements fx and ix (face|image extended) 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 */ |
197 | 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 */ |
198 | bool ACC (RW, has_readable_type); /* If true client accept additional text information */ |
199 | /* used to arrange text in books, scrolls, or scripted dialogs */ |
199 | /* 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 */ |
200 | bool ACC (RW, monitor_spells); /* Client wishes to be informed when their spell list changes */ |
201 | bool ACC (RW, ext_mapinfos); /* If true client accepts additional info on maps */ |
|
|
202 | /* Below are flags for extedend infos to pass to client |
|
|
203 | * with S->C mapextended command */ |
|
|
204 | bool ACC (RW, EMI_smooth); /* Send smooth in extendmapinfos */ |
|
|
205 | bool ACC (RW, smoothing); // trt-style smoothing |
201 | bool ACC (RW, smoothing); // trt-style smoothing |
206 | bool ACC (RW, can_msg); // trt-style text messages |
202 | bool ACC (RW, can_msg); // trt-style text messages |
207 | |
203 | |
208 | bool ACC (RW, force_newmap); // force a newmap before next map update |
204 | bool ACC (RW, force_newmap); // force a newmap before next map update |
209 | uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */ |
205 | uint32 ACC (RW, supported_readables); /* each bit is a readable supported by client */ |
… | |
… | |
368 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |
364 | #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ |
369 | ( ((__type)>0) &&\ |
365 | ( ((__type)>0) &&\ |
370 | ((__sockPtr)->has_readable_type) && \ |
366 | ((__sockPtr)->has_readable_type) && \ |
371 | ((__sockPtr)->supported_readables & (1<<(__type))) ) |
367 | ((__sockPtr)->supported_readables & (1<<(__type))) ) |
372 | |
368 | |
373 | /* Constants in the form EMI_ is for extended map infos. |
|
|
374 | * Even if the client select the additionnal infos it wants |
|
|
375 | * on the map, there may exist cases where this whole info |
|
|
376 | * is not given in one buch but in separate bunches. This |
|
|
377 | * is done performance reasons (imagine some info related to |
|
|
378 | * a visible object and another info related to a 4 square |
|
|
379 | * width and height area). At the begin of an extended info packet |
|
|
380 | * is a bit field. A bit is activated for each extended info |
|
|
381 | * present in the data |
|
|
382 | */ |
|
|
383 | |
|
|
384 | /* Meanings: |
|
|
385 | * EMI_NOREDRAW Take extended infos into account but don't redraw, |
|
|
386 | * some additionnal datas will follow in a new packet |
|
|
387 | * EMI_SMOOTH Datas about smoothing |
|
|
388 | */ |
|
|
389 | #define EMI_NOREDRAW 0x01 |
|
|
390 | #define EMI_SMOOTH 0x02 |
|
|
391 | |
|
|
392 | /* this last one says the bitfield continue un next byte |
|
|
393 | * There may be several on contiguous bytes. So there is 7 |
|
|
394 | * actual bits used per byte, and the number of bytes |
|
|
395 | * is not fixed in protocol |
|
|
396 | */ |
|
|
397 | #define EMI_HASMOREBITS 0x80 |
|
|
398 | |
|
|
399 | #define FACE_TYPES 1 |
369 | #define FACE_TYPES 1 |
400 | #define PNG_FACE_INDEX 0 |
370 | #define PNG_FACE_INDEX 0 |
401 | |
371 | |
402 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
372 | #define VERSION_CS 1023 /* version >= 1023 understand setup cmd */ |
403 | #define VERSION_SC 1026 |
373 | #define VERSION_SC 1026 |