|
Crossfire Client, Trunk
R18666
|

Go to the source code of this file.
Defines various flags that both the new client and new server use. These should never be changed, only expanded. Changing them will likely cause all old clients to not work properly. While called newclient, it is used by both the client and server to keep some values the same.
Name format is CS_(command)_(flag) CS = Client/Server. (command) is protocol command, ie ITEM (flag) is the flag name
Definition in file newclient.h.
| #define CS_QUERY_HIDEINPUT 0x4 |
Hide input being entered.
Definition at line 96 of file newclient.h.
| #define CS_QUERY_SINGLECHAR 0x2 |
Single character response expected.
Definition at line 95 of file newclient.h.
| #define CS_QUERY_YESNO 0x1 |
Yes/no question.
Definition at line 94 of file newclient.h.
| #define CS_SAY_GSAY 0x4 |
Text is group say command.
Definition at line 100 of file newclient.h.
| #define CS_SAY_NORMAL 0x1 |
Normal say command.
Definition at line 98 of file newclient.h.
| #define CS_SAY_SHOUT 0x2 |
Text is shouted.
Definition at line 99 of file newclient.h.
| #define INFO_MAP_ARCH_NAME 1 |
Definitions for the requestion/replyinfo map data. Archetype name of this entry
Definition at line 689 of file newclient.h.
| #define INFO_MAP_DESCRIPTION 3 |
Description of this map
Definition at line 691 of file newclient.h.
| #define INFO_MAP_NAME 2 |
Proper name of this entry
Definition at line 690 of file newclient.h.
| #define MAP2_COORD_ENCODE | ( | x, | |
| y, | |||
| flags | |||
| ) | ((((x)+MAP2_COORD_OFFSET)&0x3f)<<10|(((y)+MAP2_COORD_OFFSET)&0x3f)<<4|(flags&0x0f)) |
Encodes a (x, y) pair suitable for map2 parameters. The coordinates must be between [-MAP2_COORD_OFFSET..63-MAP2_COORD_OFFSET]. The flags value must be between [0..15].
| x | the x-coordinate |
| y | the y-coordinate |
| flags | the flags value |
Definition at line 92 of file newclient.h.
| #define MAP2_COORD_OFFSET 15 |
How much the x,y coordinates in the map2 are off from actual upper left corner. Necessary for light sources that may be off the edge of the visible map.
Definition at line 60 of file newclient.h.
| #define MAP2_LAYER_START 0x10 |
Definition at line 81 of file newclient.h.
| #define MAXSOCKBUF (2+65535+1) |
Maximum size of a packet the client expects to get and that the server can send. Using a buffer of this size allows the client to avoid constant allocation and deallocation of the same buffer over and over again (at the cost of using extra memory). This also makes the code simpler. The size is big enough to receive any valid packet: 2 bytes for length, 65535 for maximum packet size, 1 for a trailing null character.
Definition at line 53 of file newclient.h.
Contains the base information we use to make up a packet we want to send.
1.7.6.1