#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"
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 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 std::map<std::string, string_fn> skill_op_map |
typedef skill_title_key_t stk |
typedef std::string(* string_fn)() |
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 | |||
) |
void calc_hp | ( | ) |
void calc_mp | ( | ) |
float crosstrain_bonus | ( | skill_type | sk | ) |
bool crosstrain_other | ( | skill_type | sk, | |
bool | show_zero | |||
) |
void dump_skills | ( | std::string & | text | ) |
int get_skill_percentage | ( | const skill_type | x | ) |
unsigned get_skill_rank | ( | unsigned | skill_lev | ) |
void init_skill_order | ( | void | ) |
bool is_antitrained | ( | skill_type | sk | ) |
bool is_invalid_skill | ( | skill_type | skill | ) |
std::string player_title | ( | ) |
unsigned int skill_exp_needed | ( | int | lev, | |
skill_type | sk, | |||
species_type | sp | |||
) |
unsigned int skill_exp_needed | ( | int | lev | ) |
void skill_menu | ( | bool | reskilling | ) |
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 | |||
) |
std::string skill_title_by_rank | ( | skill_type | best_skill, | |
uint8_t | skill_rank, | |||
int | species, | |||
int | str, | |||
int | dex, | |||
int | god | |||
) |
int skill_transfer_amount | ( | skill_type | sk | ) |
int species_apt | ( | skill_type | skill, | |
species_type | species | |||
) |
float species_apt_factor | ( | skill_type | sk, | |
species_type | sp | |||
) |
skill_type str_to_skill | ( | const std::string & | skill | ) |
int transfer_skill_points | ( | skill_type | fsk, | |
skill_type | tsk, | |||
int | skp_max, | |||
bool | simu | |||
) |
void wield_warning | ( | bool | newWeapon | ) |
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] |