 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
198 time_t last_save_time;
201 uint32_t last_save_tick;
237 #define FIND_PLAYER_PARTIAL_NAME 0x1
238 #define FIND_PLAYER_NO_HIDDEN_DM 0x2
247 #define ADD_PLAYER_NEW 0x1
248 #define ADD_PLAYER_NO_MAP 0x2
249 #define ADD_PLAYER_NO_STATS_ROLL 0x4
int16_t gen_sp
Bonuses to regeneration speed of sp.
@ party_rejoin_no
Don't rejoin.
uint32_t do_los
If true, need to call update_los() in draw(), and clear.
int16_t bed_y
x,y - coordinates of respawn (savebed).
#define MAP_CLIENT_X
This determines the maximum map size the client can request (and thus what the server will send to th...
tag_t * stack_items
Item stack for patch/dump/...
player * next
Pointer to next player, NULL if this is last.
@ bow_spreadshot
Fire three arrows in a cone.
@ bow_normal
Standard mode, one random arrow.
const char * unarmed_skill
Prefered skill to use in unarmed combat.
uint32_t mode
Mode of player for pickup.
void * language_t
Strings that should be manipulated through add_string() and free_string().
int16_t last_golem_hp
Last golem hp value sent to the client.
@ bow_threewide
Fire three arrows in the same direction.
@ bow_e
Fire east whatever the facing direction.
This stores, for a spell a player knows, the last sp/gr/dam information sent to client.
int16_t digestion
Any bonuses/penalties to digestion.
int16_t gen_grace
Bonuses to regeneration speed of grace.
uint32_t golem_count
To track the golem.
bool is_wraith
Whether this player is a wraith or not, initialized at load time.
Socket structure, represents a client-server connection.
client_spell * spell_state
Spell information sent to client.
uint32_t mark_count
Count of marked object.
bowtype_t
Bow firing mode.
@ pet_defend
Stay close to the owner.
struct client_spell * next
Next spell information.
uint32_t no_shout
if True, player is *not *able to use shout command.
uint32_t peaceful
If set, won't attack friendly creatures.
object * ob
The object representing the player.
@ bow_ne
Fire north-east whatever the facing direction.
object * transport
Transport the player is in.
living last_applied_stats
Last applied stats sent to the client.
int8_t levhp[11]
What hp bonus the player gained on that level.
@ range_none
No range selected.
@ party_rejoin_if_exists
Rejoin if party exists.
SockList ** delayed_buffers
Buffers which will be sent after the player's tick completes.
uint32_t last_path_denied
Last spell denied sent to client.
int16_t last_sp
Last spell cost.
uint32_t partial_commands
If 1, then first letters of a command are enough if no ambiguity in name.
int8_t last_level
Last level we sent to client.
int8_t levsp[11]
What sp bonus the player gained on that level.
char savebed_map[MAX_BUF]
Map where player will respawn after death.
living last_stats
Last stats as sent to client.
uint32_t hidden
If True, player (DM) is hidden from view.
@ unapply_always
Will unapply whatever is necessary - this goes beyond no choice - if there are multiple ojbect of the...
@ range_golem
Control golem.
living applied_stats
Stat changes due to gear or skills.
@ bow_bestarrow
Try to find an arrow matching the target.
int swap_first
First stat player has selected to swap.
@ bow_sw
Fire south-west whatever the facing direction.
@ party_rejoin_always
If party doesn't exist, form it.
@ range_builder
Map builder.
char killer[BIG_NAME]
Who killed this player.
float last_speed
Last speed as sent to client.
uint32_t run_on
Player should keep moving in dir until run is off.
int16_t last_dam
Last damage.
@ range_size
Maximum, exclusive, value.
int8_t blocked_los[MAP_CLIENT_X][MAP_CLIENT_Y]
Array showing what spaces the player can see.
uint16_t last_flags
Fire/run on flags for last tick.
sstring followed_player
Player the DM is following.
unapplymode
This is used to control what to do when we need to unapply an object before we can apply another one.
object * ranges[range_size]
Object for each range.
uint8_t delayed_buffers_used
Used items in delayed_buffers_used.
@ bow_w
Fire west whatever the facing direction.
uint32_t last_path_attuned
Last spell attunment sent to client.
int16_t encumbrance
How much our player is encumbered.
uint32_t last_character_flags
Last character flags (CS_STAT_CHARACTER_FLAGS) sent to client.
int64_t last_skill_exp[MAX_SKILLS]
Last exp sent to client.
object * spell
Spell object this structure is about.
spell prayer lvl t sp speed range duration short description
int8_t levgrace[11]
What grace bonus the player gained on that level.
int16_t last_grace
Last grace cost.
uint32_t tmp_invis
Will invis go away when we attack?
@ bow_nw
Fire north-west whatever the facing direction.
Information on one title.
int16_t item_power
Total item power of objects equipped.
@ range_bottom
Minimum, exclusive, value.
rangetype
What range is currently selected by the player.
uint32_t tag_t
Object tag, unique during the whole game.
rangetype shoottype
Which range-attack is being used by player.
int32_t last_weight_limit
Last weight limit transmitted to client.
#define MAX_SKILLS
This is the maximum number of skills the game may handle.
living last_race_stats
Last race stats sent to the client.
char maplevel[MAX_BUF]
On which level is the player?
uint32_t fire_on
Player should fire object, not move.
uint16_t last_item_power
Last value for item_power.
Various statistics of objects.
@ key_inventory
Only use keys in inventory.
object * last_skill_ob[MAX_SKILLS]
Exp objects sent to client.
#define MAX_BUF
Used for all kinds of things.
int32_t last_weight
Last weight as sent to client; -1 means do not send weight.
uint8_t listening
Which priority will be used in info_all.
living orig_stats
Permanent real stats of player.
@ pet_sad
Try to find enemies.
unapplymode unapply
Method for auto unapply.
int16_t last_golem_maxhp
Last golem max hp value sent to the client.
int16_t gen_sp_armour
Penalty to sp regen from armour.
char search_str[MAX_BUF]
Item we are looking for.
char new_password[16]
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16
int16_t gen_hp
Bonuses to regeneration speed of hp.
object * mark
Marked object.
@ pet_normal
Standard mode/.
uint32_t has_hit
If set, weapon_sp instead of speed will count.
partylist * party_to_join
Used when player wants to join a party but we will have to get password first so we have to remember ...
@ unapply_nochoice
Will unapply objects when there no choice to unapply.
bool is_old_wraith
Whether this player is a "old" wraith, initialized at load time and updated when eating.
char own_title[MAX_NAME]
Title the player has chosen for themself.
const typedef char * sstring
language_t language
The language the player wishes to use.
uint8_t state
Input state of the player (name, password, etc).
uint32_t braced
Will not move if braced, only attack.
@ pet_arena
Attack other players in arena.
living last_orig_stats
Last permanent stats sent to client.
@ bow_n
Fire north whatever the facing direction.
@ bow_s
Fire south whatever the facing direction.
int16_t last_resist[NROFATTACKS]
last resist values sent to client.
partylist * party
Party this player is part of.
@ containers
Use keys in inventory and active containers.
@ keyrings
Use keys in inventory and active key rings.
uint32_t count
Any numbers typed before a command.
tag_t last_examined
Tag of most recently 'examined object.
char last_tell[MAX_NAME]
last player that told you something [mids 01/14/2002].
float character_load
Value between 0 and 1 indicating how much the character is overloaded.
uint8_t delayed_buffers_allocated
Number of items in delayed_buffers_used.
uint32_t has_directory
If 0, the player was not yet saved, its directory doesn't exist.
uint32_t last_path_repelled
Last spell repelled sent to client.
char password[16]
2 (seed) + 11 (crypted) + 1 (EOS) + 2 (safety) = 16
int stack_position
Current stack position, 0 for no item.
socket_struct * socket
Socket information for this player.
bool is_criminal(object *op)
@ unapply_never
Will not unapply objects automatically.
void commit_crime(object *op, const char *description)
@ bow_se
Fire south-east whatever the facing direction.
petmode_t petmode
Which petmode?
object * last_exit
Last exit used by player or NULL.
float last_weapon_sp
if diff than weapon_sp, update client.
const char * invis_race
What race invisible to?
char spellparam[MAX_BUF]
What param to add to spells.
party_rejoin_mode
Whether to rejoin party at login or not.
uint32_t name_changed
If true, the player has set a name.
Contains the base information we use to make up a packet we want to send.
bowtype_t bowtype
Which firemode?
float last_character_load
Last value sent to the client.
usekeytype
How to use keys.
uint32_t ticks_played
How many ticks this player has played.
usekeytype usekeys
Method for finding keys for doors.
party_rejoin_mode rejoin_party
Whether to rejoin or not party at login.