skills2.cc File Reference

#include "AppHdr.h"
#include "skills2.h"
#include <algorithm>
#include <cmath>
#include <string>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "artefact.h"
#include "cio.h"
#include "describe.h"
#include "externs.h"
#include "fight.h"
#include "godabil.h"
#include "itemprop.h"
#include "options.h"
#include "player.h"
#include "species.h"
#include "skills.h"
#include "stuff.h"
#include "tilepick.h"
#include "tilereg-crt.h"
#include "aptitudes.h"

Include dependency graph for skills2.cc:


Classes

class  skill_title_key_t
struct  species_skill_aptitude

Defines

#define NAME_SIZE   20
#define LEVEL_SIZE   4
#define PROGRESS_SIZE   6
#define APTITUDE_SIZE   5
#define MIN_COLS   78
#define MIN_LINES   24
#define TILES_COL   6
#define CURRENT_ACTION_SIZE   24
#define NEXT_ACTION_SIZE   15
#define NEXT_DISPLAY_SIZE   18
#define SHOW_ALL_SIZE   16
#define APT_DOUBLE   4

Typedefs

typedef std::string(* string_fn )()
typedef std::map< std::string,
string_fn
skill_op_map
typedef skill_title_key_t stk

Functions

int get_skill_percentage (const skill_type x)
void skill_menu (bool reskilling)
const char * skill_name (skill_type which_skill)
skill_type str_to_skill (const std::string &skill)
unsigned get_skill_rank (unsigned skill_lev)
std::string skill_title_by_rank (skill_type best_skill, uint8_t skill_rank, int species, int str, int dex, int god)
std::string skill_title (skill_type best_skill, uint8_t skill_lev, int species, int str, int dex, int god)
std::string player_title ()
skill_type best_skill (skill_type min_skill, skill_type max_skill, skill_type excl_skill)
void init_skill_order (void)
void calc_hp ()
void calc_mp ()
unsigned int skill_exp_needed (int lev)
unsigned int skill_exp_needed (int lev, skill_type sk, species_type sp)
int species_apt (skill_type skill, species_type species)
float species_apt_factor (skill_type sk, species_type sp)
float crosstrain_bonus (skill_type sk)
bool crosstrain_other (skill_type sk, bool show_zero)
bool is_antitrained (skill_type sk)
bool antitrain_other (skill_type sk, bool show_zero)
void wield_warning (bool newWeapon)
bool is_invalid_skill (skill_type skill)
void dump_skills (std::string &text)
int skill_transfer_amount (skill_type sk)
int transfer_skill_points (skill_type fsk, skill_type tsk, int skp_max, bool simu)

Variables

const char * skills [NUM_SKILLS][6]
const char * martial_arts_titles [6]
const char * claw_and_tooth_titles [6]

Define Documentation

#define APT_DOUBLE   4

#define APTITUDE_SIZE   5

#define CURRENT_ACTION_SIZE   24

#define LEVEL_SIZE   4

#define MIN_COLS   78

#define MIN_LINES   24

#define NAME_SIZE   20

#define NEXT_ACTION_SIZE   15

#define NEXT_DISPLAY_SIZE   18

#define PROGRESS_SIZE   6

#define SHOW_ALL_SIZE   16

#define TILES_COL   6


Typedef Documentation

typedef std::map<std::string, string_fn> skill_op_map

typedef std::string(* string_fn)()


Function Documentation

bool antitrain_other ( skill_type  sk,
bool  show_zero 
)

skill_type best_skill ( skill_type  min_skill,
skill_type  max_skill,
skill_type  excl_skill 
)

Here is the call graph for this function:

void calc_hp (  ) 

Here is the call graph for this function:

void calc_mp (  ) 

Here is the call graph for this function:

float crosstrain_bonus ( skill_type  sk  ) 

bool crosstrain_other ( skill_type  sk,
bool  show_zero 
)

void dump_skills ( std::string text  ) 

Here is the call graph for this function:

int get_skill_percentage ( const skill_type  x  ) 

Here is the call graph for this function:

unsigned get_skill_rank ( unsigned  skill_lev  ) 

void init_skill_order ( void   ) 

Here is the call graph for this function:

bool is_antitrained ( skill_type  sk  ) 

bool is_invalid_skill ( skill_type  skill  ) 

std::string player_title (  ) 

Here is the call graph for this function:

unsigned int skill_exp_needed ( int  lev,
skill_type  sk,
species_type  sp 
)

Here is the call graph for this function:

unsigned int skill_exp_needed ( int  lev  ) 

void skill_menu ( bool  reskilling  ) 

Here is the call graph for this function:

const char* skill_name ( skill_type  which_skill  ) 

std::string skill_title ( skill_type  best_skill,
uint8_t  skill_lev,
int  species,
int  str,
int  dex,
int  god 
)

Here is the call graph for this function:

std::string skill_title_by_rank ( skill_type  best_skill,
uint8_t  skill_rank,
int  species,
int  str,
int  dex,
int  god 
)

Here is the call graph for this function:

int skill_transfer_amount ( skill_type  sk  ) 

Here is the call graph for this function:

int species_apt ( skill_type  skill,
species_type  species 
)

float species_apt_factor ( skill_type  sk,
species_type  sp 
)

Here is the call graph for this function:

skill_type str_to_skill ( const std::string skill  ) 

int transfer_skill_points ( skill_type  fsk,
skill_type  tsk,
int  skp_max,
bool  simu 
)

Here is the call graph for this function:

void wield_warning ( bool  newWeapon  ) 

Here is the call graph for this function:


Variable Documentation

const char* claw_and_tooth_titles[6]

Initial value:

    {"Unarmed Combat", "Scratcher", "Gouger", "Ripper", "Eviscerator", "Sabretooth"}

const char* martial_arts_titles[6]

Initial value:

    {"Unarmed Combat", "Insei", "Martial Artist", "Black Belt", "Sensei", "Grand Master"}

const char* skills[NUM_SKILLS][6]


Generated on Thu Jan 13 13:22:21 2011 by  doxygen 1.5.6