home · contact · privacy
Corrected line lengths.
[plomrogue] / src / map_object_actions.h
index 2edc172e7a73d1cd96f99b861b957bb5785ed988..ae764b9f1ea746d97fd1c555f9eb003f977e3cf3 100644 (file)
@@ -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);