From 2b246a2f1016744c425f9cc9009cfd6b780619b3 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 25 Oct 2007 14:49:06 +0000 Subject: Type safety and code cleanup. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2569 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/player.h') diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index dd12489769..51fbb3da85 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -79,8 +79,8 @@ bool wearing_amulet(char which_am, bool calc_unid = true); /* *********************************************************************** * called from: acr - chardump - describe - newgame - view * *********************************************************************** */ -std::string species_name( int speci, int level, bool genus = false, - bool adj = false, bool cap = true ); +std::string species_name( species_type speci, int level, + bool genus = false, bool adj = false); int str_to_species(const std::string &species); /* *********************************************************************** @@ -298,7 +298,7 @@ void gain_exp(unsigned int exp_gained, unsigned int* actual_gain = NULL, * misc - stuff * *********************************************************************** */ void modify_stat(stat_type which_stat, char amount, bool suppress_msg, - const std::string cause, bool see_source = true); + const std::string& cause, bool see_source = true); void modify_stat(stat_type which_stat, char amount, bool suppress_msg, const char* cause, bool see_source = true); void modify_stat(stat_type which_stat, char amount, bool suppress_msg, @@ -324,8 +324,8 @@ void redraw_skill(const std::string &your_name, const std::string &class_name); * called from: ability - fight - item_use - mutation - newgame - spells0 - * transfor * *********************************************************************** */ -bool player_genus( unsigned char which_genus, - unsigned char species = SP_UNKNOWN ); +bool player_genus( genus_type which_genus, + species_type species = SP_UNKNOWN ); bool you_can_wear( int eq, bool special_armour = false ); bool you_tran_can_wear( int eq, bool check_mutation = false ); -- cgit v1.2.3-54-g00ecf