summaryrefslogtreecommitdiff
path: root/src/spell_type_fwd.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:55 +0100
commit7d6273cfbbc9717c30792817824b5511f7aee05f (patch)
tree4329d00cbfb9e382019e52515d1ac577334e7e65 /src/spell_type_fwd.hpp
parentb3585338e36d7a660fe3019131746feb9e445308 (diff)
Consolide the two spell_type headers
Diffstat (limited to 'src/spell_type_fwd.hpp')
-rw-r--r--src/spell_type_fwd.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/spell_type_fwd.hpp b/src/spell_type_fwd.hpp
new file mode 100644
index 00000000..a3b27d27
--- /dev/null
+++ b/src/spell_type_fwd.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+/*
+ * Spell effect function result
+ */
+typedef enum {
+ NO_CAST, /* Spell not cast; user aborted */
+ CAST_OBVIOUS, /* Cast; caster discovers effect (devices) */
+ CAST_HIDDEN /* Cast; caster does NOT discover effect (devices) */
+} casting_result;
+
+/*
+ * Forward declaration of the spell_type
+ */
+typedef struct spell_type spell_type;
+struct spell_type;