summaryrefslogtreecommitdiff
path: root/src/dice_fwd.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-10-27 19:25:50 +0100
committerBardur Arantsson <bardur@scientician.net>2015-10-27 19:25:50 +0100
commit867823f4429b1215cd5c3aa6d2415fb324429891 (patch)
tree2915f6c2e0acae69ad2b738e0038766354d60856 /src/dice_fwd.hpp
parentf005efee43bdb2e9749b02f73b876bf2c1145f1b (diff)
parent47fb7807d77c92fa6e72017501d9355d780adf40 (diff)
Merge branch 'cpp'
Diffstat (limited to 'src/dice_fwd.hpp')
-rw-r--r--src/dice_fwd.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dice_fwd.hpp b/src/dice_fwd.hpp
new file mode 100644
index 00000000..72b3b5ca
--- /dev/null
+++ b/src/dice_fwd.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "h-basic.h"
+
+typedef struct dice_type dice_type;
+struct dice_type;
+
+void dice_init(dice_type *dice, long base, long num, long sides);
+bool_ dice_parse(dice_type *dice, cptr s);
+void dice_parse_checked(dice_type *dice, cptr s);
+long dice_roll(dice_type *dice);
+void dice_print(dice_type *dice, char *buf);