16 #define MIN_NUM_LOOK_OBJECTS 3 22 #define DEFAULT_NUM_LOOK_OBJECTS 50 28 #define MAX_NUM_LOOK_OBJECTS 100 46 #define MAX_HEAD_OFFSET 8 48 #define MAX_CLIENT_X (MAP_CLIENT_X+MAX_HEAD_OFFSET) 49 #define MAX_CLIENT_Y (MAP_CLIENT_Y+MAX_HEAD_OFFSET) 57 #define MAXANIMNUM 2000 88 #define MAX_PASSWORD_FAILURES 5 141 #define NS_FACESENT_FACE 0x1 142 #define NS_FACESENT_SMOOTH 0x2 146 struct timeval timeout;
153 #define VERSION_CS 1023 154 #define VERSION_SC 1030 155 #define VERSION_INFO "Crossfire Server" uint8_t login_method
Login method this client is using.
uint8_t faceset
Set the client is using, default 0.
uint32_t tick
Client wishes to get tick commands.
uint32_t want_pickup
Client wants pickup information when logging in.
char * account_name
Name of the account logged in on this socket.
Sock_Status
What state a socket is in.
uint16_t look_position
Start of drawing of look window.
enum map2_label label_subtype
uint32_t last_tick
Number of ticks since last communication.
Socket structure, represents a client-server connection.
bool heartbeat
Client will send hearbeats.
int8_t sounds_this_tick
Number of sounds sent this tick.
uint16_t container_position
Start of container contents to send to client.
int max_filedescriptor
max filedescriptor on the system.
One map cell, as sent to the client.
char * host
Which host it is connected from (ip address).
Account_Chars * account_chars
Detailed information on characters on this account.
uint16_t notifications
Notifications this client wants to get.
size_t faces_sent_len
This is the number of elements allocated in faces_sent[].
uint32_t update_look
If true, we need to send the look window.
uint32_t facecache
If true, client is caching images.
uint32_t sound
Client sound mode.
Socket_Info socket_info
Socket information.
uint8_t num_look_objects
The maximum number of objects to show on the ground view; this number includes the prev/next group fa...
Holds some system-related information.
map2_label
Map label subtypes.
Contains the last range/title information sent to client.
#define MAXANIMNUM
True max is 16383 given current map compaction method.
#define MAP_LAYERS
This correspondes to the map layers in the map2 protocol.
uint32_t sc_version
Versions of the client.
Contains parameters for socket() and bind() for listening sockets.
uint32_t update_inventory
If true, we need to send the inventory list.
int allocated_sockets
Number of allocated items in init_sockets.
uint32_t is_bot
Client shouldn't be reported to metaserver.
uint32_t extended_stats
Client wants base and maximum statistics information.
Structure handling character information for an account.
uint32_t darkness
True if client wants darkness information.
uint8_t password_fails
How many times the player has failed to give the right password.
int darkness
Cell's darkness.
uint32_t monitor_spells
Client wishes to be informed when their spell list changes.
Contains the base information we use to make up a packet we want to send.
uint8_t mapy
How large a map the client wants.
struct listen_info * listen
uint8_t * faces_sent
This is a bitmap on sent face status.
uint16_t faces[MAP_LAYERS]
Face numbers.
SockList inbuf
If we get an incomplete packet, this is used to hold the data.