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