Crossfire Server, Trunk  R20513
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
living.h File Reference

Structure containing object statistics. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  liv
 Various statistics of objects. More...
 

Macros

#define MAXLEVEL   115
 Maximum level a player can reach. More...
 

Typedefs

typedef struct liv living
 Various statistics of objects. More...
 

Enumerations

enum  {
  STRENGTH = 0, DEXTERITY = 1, CONSTITUTION = 2, WISDOM = 3,
  CHARISMA = 4, INTELLIGENCE = 5, POWER = 6, NUM_STATS = 7
}
 Object statistics. More...
 

Functions

int get_cha_bonus (int stat)
 
int get_cleric_chance (int stat)
 
int get_dam_bonus (int stat)
 
int get_dex_bonus (int stat)
 
int get_fear_bonus (int stat)
 
int get_learn_spell (int stat)
 
float get_speed_bonus (int stat)
 
int get_thaco_bonus (int stat)
 
int get_turn_bonus (int stat)
 
uint32_t get_weight_limit (int stat)
 

Variables

const char *const attacks [NROFATTACKS]
 Attack type names. More...
 
const char *const lose_msg [NUM_STATS]
 Message when a player decreases permanently a stat. More...
 
const char *const restore_msg [NUM_STATS]
 Message when a player has a stat restored. More...
 
const char *const short_stat_name [NUM_STATS]
 Short name of stats. More...
 
const char *const statname [NUM_STATS]
 Name of stats. More...
 

Detailed Description

Structure containing object statistics.

Definition in file living.h.

Macro Definition Documentation

#define MAXLEVEL   115

Maximum level a player can reach.

Definition at line 22 of file living.h.

Typedef Documentation

typedef struct liv living

Various statistics of objects.

Enumeration Type Documentation

anonymous enum

Object statistics.

Enumerator
STRENGTH 
DEXTERITY 
CONSTITUTION 
WISDOM 
CHARISMA 
INTELLIGENCE 
POWER 
NUM_STATS 

Number of statistics.

Definition at line 10 of file living.h.

Function Documentation

int get_cha_bonus ( int  stat)

Definition at line 2243 of file living.c.

References get_index(), int_bonuses, INT_CHA_BONUS, Settings::max_stat, and settings.

Here is the call graph for this function:

int get_cleric_chance ( int  stat)

Definition at line 2263 of file living.c.

References get_index(), int_bonuses, INT_CLERIC_CHANCE, Settings::max_stat, and settings.

Referenced by cast_spell().

Here is the call graph for this function:

Here is the caller graph for this function:

int get_dam_bonus ( int  stat)

Definition at line 2271 of file living.c.

References get_index(), int_bonuses, INT_DAM_BONUS, Settings::max_stat, and settings.

Referenced by do_throw(), fire_bow(), and fix_player().

Here is the call graph for this function:

Here is the caller graph for this function:

int get_dex_bonus ( int  stat)

Definition at line 2247 of file living.c.

References get_index(), int_bonuses, INT_DEX_BONUS, Settings::max_stat, and settings.

Referenced by do_throw(), fire_bow(), and fix_player().

Here is the call graph for this function:

Here is the caller graph for this function:

int get_fear_bonus ( int  stat)

Definition at line 2279 of file living.c.

References get_index(), int_bonuses, INT_FEAR_BONUS, Settings::max_stat, and settings.

Referenced by cast_cone().

Here is the call graph for this function:

Here is the caller graph for this function:

int get_learn_spell ( int  stat)

Definition at line 2259 of file living.c.

References get_index(), int_bonuses, INT_LEARN_SPELL, Settings::max_stat, and settings.

Referenced by learn_skill(), and spellbook_type_apply().

Here is the call graph for this function:

Here is the caller graph for this function:

float get_speed_bonus ( int  stat)

Definition at line 2275 of file living.c.

References float_bonuses, FLOAT_DEX_BONUS, get_index(), Settings::max_stat, and settings.

Referenced by do_throw(), and fix_player().

Here is the call graph for this function:

Here is the caller graph for this function:

int get_thaco_bonus ( int  stat)

Definition at line 2251 of file living.c.

References get_index(), int_bonuses, INT_THAC0_BONUS, Settings::max_stat, and settings.

Referenced by do_throw(), fire_bow(), and fix_player().

Here is the call graph for this function:

Here is the caller graph for this function:

int get_turn_bonus ( int  stat)

Definition at line 2267 of file living.c.

References get_index(), int_bonuses, INT_TURN_BONUS, Settings::max_stat, and settings.

Referenced by cast_cone(), and hit_with_one_attacktype().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t get_weight_limit ( int  stat)

Definition at line 2255 of file living.c.

References get_index(), int_bonuses, INT_WEIGHT_LIMIT, Settings::max_stat, and settings.

Referenced by do_harvest(), do_throw(), esrv_update_stats(), fix_player(), monster_check_pickup(), object_can_pick(), and pick_up_object().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* const attacks[NROFATTACKS]

Attack type names.

Definition at line 129 of file living.c.

Referenced by CREScriptEngine::CREScriptEngine(), describe_attacktype(), did_make_save_item(), and set_dragon_name().

const char* const lose_msg[NUM_STATS]

Message when a player decreases permanently a stat.

Definition at line 172 of file living.c.

Referenced by change_abil(), and kill_player_not_permadeath().

const char* const restore_msg[NUM_STATS]

Message when a player has a stat restored.

Definition at line 150 of file living.c.

Referenced by god_intervention(), and remove_depletion().

const char* const short_stat_name[NUM_STATS]

Short name of stats.

Definition at line 194 of file living.c.

Referenced by create_player_cmd(), describe_item(), key_roll_stat(), ring_desc(), send_new_char_info(), and swap_stat().

const char* const statname[NUM_STATS]

Name of stats.

Definition at line 183 of file living.c.

Referenced by perceive_self().