boolifying of boolean functions in monsters.h
authorfluffymormegil <mpread@chiark.greenend.org.uk>
Fri, 16 Mar 2012 22:20:40 +0000 (22:20 +0000)
committerfluffymormegil <mpread@chiark.greenend.org.uk>
Fri, 16 Mar 2012 22:20:40 +0000 (22:20 +0000)
monsters.h

index 8d9c202..30d9d6f 100644 (file)
@@ -1,6 +1,6 @@
 /* monsters.h
  * 
- * Copyright 2005 Martin Read
+ * Copyright 2005-2012 Martin Read
  * 
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -27,8 +27,8 @@
 #ifndef MONSTERS_H
 #define MONSTERS_H
 
-#ifndef DUNBASH_H
-#include "dunbash.h"
+#ifndef CAVECHOP_H
+#include "cavechop.h"
 #endif
 
 /* XXX monsters.c data and funcs */
@@ -53,13 +53,17 @@ extern void heal_mon(int mon, int amount, int cansee);
 extern void select_space(int *py, int *px, int dy, int dx, int selection_mode);
 
 /* XXX pmon2.c data and funcs */
-extern int pmon_is_archer(int pm);
-extern int pmon_is_magician(int pm);
-extern int pmon_is_smart(int pm);
-extern int pmon_is_stupid(int pm);
-extern int pmon_is_undead(int pm);
-extern int pmon_resists_cold(int pm);
-extern int pmon_resists_fire(int pm);
+extern bool pmon_is_archer(int pm);
+extern bool pmon_is_magician(int pm);
+extern bool pmon_is_smart(int pm);
+extern bool pmon_is_stupid(int pm);
+extern bool pmon_is_undead(int pm);
+extern bool pmon_resists_cold(int pm);
+extern bool pmon_resists_fire(int pm);
+extern bool pmon_resists_poison(int pm);
+extern bool pmon_resists_necro(int pm);
+extern bool pmon_resists_elec(int pm);
+
 #endif
 
 /* monsters.h */