summaryrefslogtreecommitdiffstats
path: root/trunk/source/mstuff2.h
diff options
context:
space:
mode:
authorpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
committerpeterb12 <peterb12@c06c8d41-db1a-0410-9941-cceddc491573>2005-07-21 02:34:44 +0000
commit673bdae75485d14f759af597c3c62b99601f9a43 (patch)
tree368103f29fe0ce5dcf98060d9b5faa04590085fb /trunk/source/mstuff2.h
parent7e900be770db24b0405fd2162491c405a425873e (diff)
downloadcrawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.tar.gz
crawl-ref-673bdae75485d14f759af597c3c62b99601f9a43.zip
Initial revision
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'trunk/source/mstuff2.h')
-rw-r--r--trunk/source/mstuff2.h117
1 files changed, 117 insertions, 0 deletions
diff --git a/trunk/source/mstuff2.h b/trunk/source/mstuff2.h
new file mode 100644
index 0000000000..1bdd23232f
--- /dev/null
+++ b/trunk/source/mstuff2.h
@@ -0,0 +1,117 @@
+/*
+ * File: mstuff2.h
+ * Summary: Misc monster related functions.
+ * Written by: Linley Henzell
+ *
+ * Change History (most recent first):
+ *
+ * <1> 4/24/99 JDJ mons_spells returns an
+ * SBeam instead of using
+ * func_pass.
+ */
+
+
+#ifndef MSTUFF2_H
+#define MSTUFF2_H
+
+
+#include <string>
+#include "externs.h"
+
+
+struct SBeam
+{
+ std::string name;
+ int colour;
+ int range;
+ int rangeMax;
+ int hit;
+ dice_def damage;
+ int ench_power;
+ int type;
+ int flavour;
+ int thrown;
+ bool isBeam;
+};
+
+
+/*
+ beam_colour = _pass[0];
+ beam_range = _pass[1];
+ beam_damage = _pass[2];
+ beam_hit = _pass[3];
+ beam_type = _pass[4];
+ beam_flavour = _pass[5];
+ thing_thrown = _pass[6];
+ */
+
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: monstuff - mstuff2
+ * *********************************************************************** */
+struct SBeam mons_spells(int spell_cast, int power);
+
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+void setup_dragon(struct monsters *monster, struct bolt &pbolt);
+
+
+// last updated 13feb2001 {gdl}
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+void mons_cast(struct monsters *monster, struct bolt &pbolt, int spell_cast);
+
+// last updated 7jan2001 {gdl}
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+void setup_mons_cast(struct monsters *monster, struct bolt &pbolt, int spell_cast);
+
+// last updated 28july2000 (gdl)
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+bool mons_throw(struct monsters *monster, struct bolt &pbolt, int hand_used);
+
+// last updated 07jan2001 (gdl)
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+void setup_generic_throw(struct monsters *monster, struct bolt &pbolt);
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+void mons_trap(struct monsters *monster);
+
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: beam - fight - files - monstuff - mstuff2 - spells4
+ * *********************************************************************** */
+void monster_teleport(struct monsters *monster, bool instan);
+
+
+// last updated Dec17,2000 -- gdl
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+void spore_goes_pop(struct monsters *monster);
+
+
+// last updated Jan14,2001 -- gdl
+/* ***********************************************************************
+ * called from: monstuff
+ * *********************************************************************** */
+void throw_type(int lnchClass, int lnchType, int wepClass, int wepType,
+ bool &launched, bool &thrown);
+
+
+
+#endif