X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Fmap_object_actions.h;h=ae764b9f1ea746d97fd1c555f9eb003f977e3cf3;hb=fb8ddca6abc66eb7e52a007850689309b4cda938;hp=2edc172e7a73d1cd96f99b861b957bb5785ed988;hpb=f2a7bc28be634fde4dfe4bde4c83395cab9efa91;p=plomrogue
diff --git a/src/map_object_actions.h b/src/map_object_actions.h
index 2edc172..ae764b9 100644
--- a/src/map_object_actions.h
+++ b/src/map_object_actions.h
@@ -11,7 +11,7 @@
#include "yx_uint16.h" /* for yx_uint16 coordinates */
struct World;
struct Map;
-struct Monster;
+struct MapObj;
@@ -20,13 +20,15 @@ struct Monster;
* and thereby potentially trigger the player's death. Update the log for any
* contact action.
*/
-extern void move_monster(struct World * world, struct Monster * monster);
+extern void move_monster(struct World * world, struct MapObj * monster);
/* Try to move player in direction "d". On contact with monster, fight / reduce
- * monster's hitpoints, and thereby potentially trigger the monster's death.
- * Update the log on whatever the player did and turn control over to the enemy.
+ * monster's hitpoints, and thereby potentially trigger the monster's death,
+ * create a corpse and increment the player's score by the amount of hitpoints
+ * the monster started with. Update the log on whatever the player did and turn
+ * control over to the enemy.
*/
extern void move_player (struct World * world, enum dir d);