summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-25 14:49:06 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-25 14:49:06 +0000
commit2b246a2f1016744c425f9cc9009cfd6b780619b3 (patch)
tree290c2d7c5378fbc769889cb2c8c077b98e484723 /crawl-ref/source/player.h
parent54d4d07375bd81654b6b4bca860a4ca8ae045e1e (diff)
downloadcrawl-ref-2b246a2f1016744c425f9cc9009cfd6b780619b3.tar.gz
crawl-ref-2b246a2f1016744c425f9cc9009cfd6b780619b3.zip
Type safety and code cleanup.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2569 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.h')
-rw-r--r--crawl-ref/source/player.h10
1 files changed, 5 insertions, 5 deletions
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 );