DEADSOFTWARE

headers describes that c-files implements
[flatwaifu.git] / src / monster.h
index 7b822f624739b7022f4c8fc13ee4bf4fdcaad732..98534b3f21739ac530842ab720573435d055617c 100644 (file)
    51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 */
 
-// Monsters
+#ifndef MONSTER_H_INLUDED
+#define MONSTER_H_INLUDED
+
+#include "glob.h"
+#include "view.h" // obj_t
 
 #define MAXMN 200
 
-enum{
-  MN_NONE,MN_DEMON,MN_IMP,MN_ZOMBY,MN_SERG,MN_CYBER,MN_CGUN,
-  MN_BARON,MN_KNIGHT,MN_CACO,MN_SOUL,MN_PAIN,MN_SPIDER,MN_BSP,
-  MN_MANCUB,MN_SKEL,MN_VILE,MN_FISH,MN_BARREL,MN_ROBO,MN_MAN,
+enum {
+  MN_NONE, MN_DEMON, MN_IMP, MN_ZOMBY, MN_SERG, MN_CYBER, MN_CGUN,
+  MN_BARON, MN_KNIGHT, MN_CACO, MN_SOUL, MN_PAIN, MN_SPIDER, MN_BSP,
+  MN_MANCUB, MN_SKEL, MN_VILE, MN_FISH, MN_BARREL, MN_ROBO, MN_MAN,
   MN__LAST,
-  MN_PL_DEAD=100,MN_PL_MESS
+  MN_PL_DEAD = 100,
+  MN_PL_MESS
 };
 
 #define MN_TN (MN__LAST-MN_DEMON)
 
 #pragma pack(1)
-typedef struct{
+typedef struct {
   obj_t o;
-  byte t,d,st,ftime;
+  byte t, d, st, ftime;
   int fobj;
   int s;
   char *ap;
-  int aim,life,pain,ac,tx,ty,ammo;
+  int aim, life, pain, ac, tx, ty, ammo;
   short atm;
-}mn_t;
+} mn_t;
 #pragma pack(0)
 
+extern byte nomon;
+extern int hit_xv, hit_yv;
 extern mn_t mn[MAXMN];
 
-void MN_init(void);
-void MN_alloc(void);
-int MN_spawn(int,int,byte,int);
-int MN_spawn_deadpl(obj_t *,byte,int);
-void MN_act(void);
-void MN_mark(void);
-void MN_warning(int l,int t,int r,int b);
+void MN_savegame (FILE *h);
+void MN_loadgame (FILE *h);
+void MN_alloc (void);
+void MN_init (void);
+int MN_spawn (int x, int y, byte d, int t);
+int MN_spawn_deadpl (obj_t *o, byte c, int t);
+int Z_getobjpos (int i, obj_t *o);
+void MN_act (void);
+void MN_mark (void);
+int MN_hit (int n, int d, int o, int t);
+int Z_gunhit (int x, int y, int o, int xv, int yv);
+int Z_hit (obj_t *o, int d, int own, int t);
+void MN_killedp (void);
+void Z_explode (int x, int y, int rad, int own);
+void Z_bfg9000 (int x, int y, int own);
+int Z_chktrap (int t, int d, int o, int ht);
+void Z_teleobj (int o, int x, int y);
+void MN_warning (int l, int t, int r, int b);
 
-void MN_killedp(void);
+#endif /* MONSTER_H_INLUDED */