summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-04 23:48:21 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-04 23:48:21 +0000
commite560fb7e6d690c66e525a98013e1362dbb7df455 (patch)
treefe45d70fbdc6872ae79269b1a3fff4f43344a8b6 /crawl-ref/source/mutation.h
parentae8b9d93ae9dfe0df789c4867fbd5aeff695c6df (diff)
downloadcrawl-ref-e560fb7e6d690c66e525a98013e1362dbb7df455.tar.gz
crawl-ref-e560fb7e6d690c66e525a98013e1362dbb7df455.zip
Type safety in mutations (mutation.cc probably needs some overhaul...)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1752 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mutation.h')
-rw-r--r--crawl-ref/source/mutation.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/mutation.h b/crawl-ref/source/mutation.h
index f7f2b27d93..a50c1c50e8 100644
--- a/crawl-ref/source/mutation.h
+++ b/crawl-ref/source/mutation.h
@@ -22,7 +22,7 @@
* called from: acr - decks - effects - fight - food - it_use2 - items -
* mutation - religion - spell - spells
* *********************************************************************** */
-bool mutate(int which_mutation, bool failMsg = true,
+bool mutate(mutation_type which_mutation, bool failMsg = true,
bool force_mutation = false, bool demonspawn = false);
@@ -39,7 +39,7 @@ formatted_string describe_mutations();
/* ***********************************************************************
* called from: decks - it_use2 - mutation - spells
* *********************************************************************** */
-bool delete_mutation(int which_mutation);
+bool delete_mutation(mutation_type which_mutation);
// last updated 12may2000 {dlb}
@@ -47,7 +47,7 @@ bool delete_mutation(int which_mutation);
* called from: chardump
* *********************************************************************** */
// default of level == -1, means to use the player's current level
-const char *mutation_name( int which_mutat, int level = -1 );
+const char *mutation_name( mutation_type which_mutat, int level = -1 );
// last updated 12may2000 {dlb}
@@ -68,6 +68,6 @@ bool give_bad_mutation( bool forceMutation = false, bool failMsg = true );
* *********************************************************************** */
void demonspawn(void);
-bool perma_mutate(int which_mut, char how_much);
+bool perma_mutate(mutation_type which_mut, int how_much);
#endif