Crossfire Server, Branches 1.12  R18729
player.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  client_spell
 
struct  Output_Buf
 
struct  party_struct
 
struct  pl
 

Macros

#define NUM_OUTPUT_BUFS   5
 

Typedefs

typedef enum _bowtype bowtype_t
 
typedef struct client_spell client_spell
 
typedef enum party_rejoin_mode party_rejoin_mode
 
typedef struct party_struct partylist
 
typedef enum _petmode petmode_t
 
typedef struct pl player
 
typedef enum rangetype rangetype
 
typedef enum unapplymode unapplymode
 
typedef enum usekeytype usekeytype
 

Enumerations

enum  _bowtype {
  bow_normal = 0, bow_threewide = 1, bow_spreadshot = 2, bow_n = 3,
  bow_ne = 4, bow_e = 5, bow_se = 6, bow_s = 7,
  bow_sw = 8, bow_w = 9, bow_nw = 10, bow_bestarrow = 11
}
 
enum  _petmode { pet_normal = 0, pet_sad = 1, pet_defend = 2, pet_arena = 3 }
 
enum  party_rejoin_mode { party_rejoin_no = 0, party_rejoin_if_exists = 1, party_rejoin_always = 2 }
 
enum  rangetype {
  range_bottom = -1, range_none = 0, range_bow = 1, range_magic = 2,
  range_misc = 3, range_golem = 4, range_skill = 5, range_builder = 6,
  range_size = 7
}
 
enum  unapplymode { unapply_nochoice = 0, unapply_never = 1, unapply_always = 2 }
 
enum  usekeytype { key_inventory = 0, keyrings = 1, containers = 2 }
 

Detailed Description

Player-specific structures.

Definition in file player.h.

Macro Definition Documentation

#define NUM_OUTPUT_BUFS   5

How many output buffers a player has.

Definition at line 38 of file player.h.

Referenced by check_output_buffers(), and do_some_living().

Typedef Documentation

typedef enum _bowtype bowtype_t

Bow firing mode.

Todo:
document.
typedef struct client_spell client_spell

This stores, for a spell a player knows, the last sp/gr/dam information sent to client.

Whether to rejoin party at login or not.

typedef struct party_struct partylist

One party. First item is firstparty.

typedef enum _petmode petmode_t

Petmode.

Todo:
document.
typedef struct pl player

One player.

typedef enum rangetype rangetype

What range is currntly selected by the player.

Wand/rod/horn rolled into range_misc. They all use the same body location anyways.

typedef enum unapplymode unapplymode

This is used to control what to do when we need to unapply an object before we can apply another one.

typedef enum usekeytype usekeytype

How to use keys.

Todo:
document.

Enumeration Type Documentation

enum _bowtype

Bow firing mode.

Todo:
document.
Enumerator
bow_normal 
bow_threewide 
bow_spreadshot 
bow_n 
bow_ne 
bow_e 
bow_se 
bow_s 
bow_sw 
bow_w 
bow_nw 
bow_bestarrow 

Definition at line 65 of file player.h.

enum _petmode

Petmode.

Todo:
document.
Enumerator
pet_normal 
pet_sad 
pet_defend 
pet_arena 

Definition at line 81 of file player.h.

Whether to rejoin party at login or not.

Enumerator
party_rejoin_no 

Don't rejoin.

party_rejoin_if_exists 

Rejoin if party exists.

party_rejoin_always 

If party doesn't exist, form it.

Definition at line 139 of file player.h.

enum rangetype

What range is currntly selected by the player.

Wand/rod/horn rolled into range_misc. They all use the same body location anyways.

Enumerator
range_bottom 
range_none 
range_bow 
range_magic 
range_misc 
range_golem 
range_skill 
range_builder 
range_size 

Definition at line 52 of file player.h.

This is used to control what to do when we need to unapply an object before we can apply another one.

Enumerator
unapply_nochoice 

Will unapply objects when there no choice to unapply.

unapply_never 

Will not unapply objects automatically.

unapply_always 

Will unapply whatever is necessary - this goes beyond no choice - if there are multiple ojbect of the same type that need to be unapplied, there is no way for the player to control which of these will be unapplied.

Definition at line 99 of file player.h.

enum usekeytype

How to use keys.

Todo:
document.
Enumerator
key_inventory 
keyrings 
containers 

Definition at line 89 of file player.h.