X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fmap_object_actions.h;h=b144f29f74010d8ae360cdc87c7afef2d36a3c3c;hb=18fefabcc05bb3903384efbcc92f4303d9ac9567;hp=3041c9c2fc0c4089d40feb4fac3f71931fce2889;hpb=aafa0cb49e7ec8600dad902411de6e76e111c939;p=plomrogue
diff --git a/src/map_object_actions.h b/src/map_object_actions.h
index 3041c9c..b144f29 100644
--- a/src/map_object_actions.h
+++ b/src/map_object_actions.h
@@ -16,9 +16,9 @@ struct MapObj;
/* Try to move "actor" one step in direction "d" and handle the consequences:
- * either the move succeeds, or another actor is encountered and hit (which leads
- * to its lifepoint decreasing by one and potentially its death), or the target
- * square is not passable and the move fails.
+ * either the move succeeds, or another actor is encountered and hit (which
+ * leads to its lifepoint decreasing by one and potentially its death), or the
+ * target square is not passable and the move fails.
*/
extern uint8_t move_actor(struct World * world, struct MapObj * actor,
enum dir d);
@@ -47,4 +47,12 @@ extern char is_passable(struct Map * map, struct yx_uint16 pos);
+/* Make player drop to ground map ojbect indexed by world.inventory_select. */
+extern void player_drop(struct World * world);
+
+/* Make player pick up map object from ground. */
+extern void player_pick(struct World * world);
+
+
+
#endif