summaryrefslogtreecommitdiff
path: root/src/xtra1.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-02-13 13:56:52 +0100
committerBardur Arantsson <bardur@scientician.net>2016-02-13 13:56:52 +0100
commit4d237a87eb76eb4c6bcc5d8cbf7544a8f3184f30 (patch)
tree5e87923522f444880a6be4239e162c16312408a4 /src/xtra1.hpp
parentf13c5091e4864e957c83a35621365c8b510b80ba (diff)
Reduce file-open/close boilerplate and simplify formatting
- We introduce a show_string() which will allow us to go without actually writing a file if we want to later. - Use cppformat to simplify the output formatting.
Diffstat (limited to 'src/xtra1.hpp')
-rw-r--r--src/xtra1.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xtra1.hpp b/src/xtra1.hpp
index df2592ac..e2a41b13 100644
--- a/src/xtra1.hpp
+++ b/src/xtra1.hpp
@@ -2,6 +2,8 @@
#include "h-basic.h"
+#include <string>
+
extern void fix_message(void);
extern void apply_flags(u32b f1, u32b f2, u32b f3, u32b f4, u32b f5, u32b esp, s16b pval, s16b tval, s16b to_h, s16b to_d, s16b to_a);
extern int luck(int min, int max);
@@ -18,7 +20,7 @@ extern void handle_stuff(void);
extern bool_ monk_heavy_armor(void);
extern void calc_bonuses(bool_ silent);
extern void gain_fate(byte fate);
-extern void fate_desc(char *desc, int fate);
-extern void dump_fates(FILE *OutFile);
+extern std::string fate_desc(int fate);
+extern std::string dump_fates();
extern bool race_flags1_p(u32b flags1_mask);
extern bool race_flags2_p(u32b flags2_mask);