Crossfire Server, Trunk
R21670
|
Go to the source code of this file.
Data Structures | |
struct | CS_Stats |
struct | SockList |
Typedefs | |
typedef struct CS_Stats | CS_Stats |
typedef struct SockList | SockList |
Enumerations | |
enum | { a_none, a_readied, a_wielded, a_worn, a_active, a_applied } |
Variables | |
CS_Stats | cst_lst |
CS_Stats | cst_tot |
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 68 of file newclient.h.
Referenced by command_passwd(), confirm_password(), get_party_password(), get_password(), and receive_player_password().
#define CS_QUERY_SINGLECHAR 0x2 |
Single character response expected.
Definition at line 67 of file newclient.h.
Referenced by command_delete(), key_change_class(), key_roll_stat(), play_again(), and roll_again().
#define CS_QUERY_YESNO 0x1 |
Yes/no question.
Definition at line 66 of file newclient.h.
#define CS_SAY_GSAY 0x4 |
Text is group say command.
Definition at line 72 of file newclient.h.
#define CS_SAY_NORMAL 0x1 |
Normal say command.
Definition at line 70 of file newclient.h.
#define CS_SAY_SHOUT 0x2 |
Text is shouted.
Definition at line 71 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 673 of file newclient.h.
Referenced by send_map_info().
#define INFO_MAP_DESCRIPTION 3 |
#define INFO_MAP_NAME 2 |
Proper name of this entry
Definition at line 674 of file newclient.h.
Referenced by send_map_info().
#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 64 of file newclient.h.
Referenced by check_space_for_heads(), and draw_client_map2().
#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 32 of file newclient.h.
#define MAP2_LAYER_START 0x10 |
Definition at line 53 of file newclient.h.
Referenced by map2_add_ob().
#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 25 of file newclient.h.
Statistics on server.
Contains the base information we use to make up a packet we want to send.
CS_Stats cst_lst |
Referenced by do_specials(), init_connection(), init_server(), Send_With_Handling(), SockList_ReadPacket(), and Write_To_Socket().
CS_Stats cst_tot |
Referenced by init_connection(), init_server(), metaserver_update(), Send_With_Handling(), SockList_ReadPacket(), and Write_To_Socket().