home · contact · privacy
Don't use ncurses windows besides the virtual screen pad. Eliminated some ncurses...
[plomrogue] / src / map_object_actions.h
index 3041c9c2fc0c4089d40feb4fac3f71931fce2889..b144f29f74010d8ae360cdc87c7afef2d36a3c3c 100644 (file)
@@ -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