summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player-stats.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-04-01 15:42:01 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-04-01 18:16:14 +0200
commit14924dd4eef54ffb5a7f07cf464101f079fcfefa (patch)
tree7a6b54d57640ef06a03364cdf502d72d2d46ee53 /crawl-ref/source/player-stats.h
parentd947e0c732d433bc1dbf45bcc0d97afe5472d69f (diff)
downloadcrawl-ref-14924dd4eef54ffb5a7f07cf464101f079fcfefa.tar.gz
crawl-ref-14924dd4eef54ffb5a7f07cf464101f079fcfefa.zip
Convert stats to use vectors player::stats, player::max_stats.
Stats are now stored in FixedVector<char, NUM_STATS> player::stats, player::max_stats. Most code now reads you.strength(), you.max_strength() etc.
Diffstat (limited to 'crawl-ref/source/player-stats.h')
-rw-r--r--crawl-ref/source/player-stats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/player-stats.h b/crawl-ref/source/player-stats.h
index 8c571b0239..8be36be1d9 100644
--- a/crawl-ref/source/player-stats.h
+++ b/crawl-ref/source/player-stats.h
@@ -30,4 +30,7 @@ bool lose_stat(unsigned char which_stat, unsigned char stat_loss,
bool restore_stat(unsigned char which_stat, unsigned char stat_gain,
bool suppress_msg, bool recovery = false);
+void normalize_stat(stat_type stat);
+void modify_all_stats(int strmod, int intmod, int dexmod);
+
#endif