player-stats.cc File Reference

#include "AppHdr.h"
#include "player-stats.h"
#include "delay.h"
#include "godpassive.h"
#include "libutil.h"
#include "macro.h"
#include "mon-util.h"
#include "monster.h"
#include "ouch.h"
#include "player.h"
#include "religion.h"
#include "state.h"
#include "transform.h"
#include "hints.h"

Include dependency graph for player-stats.cc:


Defines

#define STAT_ZERO_START   10
#define STAT_DEATH_TURNS   100
#define STAT_DEATH_START_PARA   50

Functions

void attribute_increase ()
void jiyva_stat_action ()
const char * stat_desc (stat_type stat, stat_desc_type desc)
void modify_stat (stat_type which_stat, int8_t amount, bool suppress_msg, const char *cause, bool see_source)
void notify_stat_change (stat_type which_stat, int8_t amount, bool suppress_msg, const char *cause, bool see_source)
void notify_stat_change (stat_type which_stat, int8_t amount, bool suppress_msg, const item_def &cause, bool removed)
void notify_stat_change (const char *cause)
bool lose_stat (stat_type which_stat, int8_t stat_loss, bool force, const char *cause, bool see_source)
bool lose_stat (stat_type which_stat, int8_t stat_loss, bool force, const std::string cause, bool see_source)
bool lose_stat (stat_type which_stat, int8_t stat_loss, const monster *cause, bool force)
bool lose_stat (stat_type which_stat, int8_t stat_loss, const item_def &cause, bool removed, bool force)
bool restore_stat (stat_type which_stat, int8_t stat_gain, bool suppress_msg, bool recovery)
void update_stat_zero ()

Variables

const char * descs [NUM_STATS][NUM_STAT_DESCS]

Define Documentation

#define STAT_DEATH_START_PARA   50

#define STAT_DEATH_TURNS   100

#define STAT_ZERO_START   10


Function Documentation

void attribute_increase (  ) 

Here is the call graph for this function:

void jiyva_stat_action (  ) 

Here is the call graph for this function:

bool lose_stat ( stat_type  which_stat,
int8_t  stat_loss,
const item_def cause,
bool  removed,
bool  force 
)

Here is the call graph for this function:

bool lose_stat ( stat_type  which_stat,
int8_t  stat_loss,
const monster cause,
bool  force 
)

Here is the call graph for this function:

bool lose_stat ( stat_type  which_stat,
int8_t  stat_loss,
bool  force,
const std::string  cause,
bool  see_source 
)

Here is the call graph for this function:

bool lose_stat ( stat_type  which_stat,
int8_t  stat_loss,
bool  force,
const char *  cause,
bool  see_source 
)

Here is the call graph for this function:

void modify_stat ( stat_type  which_stat,
int8_t  amount,
bool  suppress_msg,
const char *  cause,
bool  see_source 
)

Here is the call graph for this function:

void notify_stat_change ( const char *  cause  ) 

void notify_stat_change ( stat_type  which_stat,
int8_t  amount,
bool  suppress_msg,
const item_def cause,
bool  removed 
)

Here is the call graph for this function:

void notify_stat_change ( stat_type  which_stat,
int8_t  amount,
bool  suppress_msg,
const char *  cause,
bool  see_source 
)

Here is the call graph for this function:

bool restore_stat ( stat_type  which_stat,
int8_t  stat_gain,
bool  suppress_msg,
bool  recovery 
)

Here is the call graph for this function:

const char* stat_desc ( stat_type  stat,
stat_desc_type  desc 
)

void update_stat_zero (  ) 

Here is the call graph for this function:


Variable Documentation

const char* descs[NUM_STATS][NUM_STAT_DESCS]

Initial value:

 {
    { "strength", "weakened", "weaker", "stronger" },
    { "intelligence", "dopey", "stupid", "clever" },
    { "dexterity", "clumsy", "clumsy", "agile" }
}


Generated on Thu Jan 13 13:18:15 2011 by  doxygen 1.5.6