• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revisionced8a61c7555e9160033ea707a4a1c028bd33ff8 (tree)
Time2019-07-09 23:41:11
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 所持品,装備品表示処理関数を整理.

Change Summary

Incremental Difference

--- a/src/files.c
+++ b/src/files.c
@@ -26,6 +26,7 @@
2626 #include "cmd-magiceat.h"
2727 #include "cmd-dump.h"
2828 #include "world.h"
29+#include "player-inventory.h"
2930 #include "player-race.h"
3031 #include "player-status.h"
3132 #include "player-move.h"
--- a/src/object.h
+++ b/src/object.h
@@ -412,10 +412,6 @@ extern s16b wield_slot(object_type *o_ptr);
412412
413413 extern bool check_book_realm(const OBJECT_TYPE_VALUE book_tval, const OBJECT_SUBTYPE_VALUE book_sval);
414414 extern bool item_tester_okay(object_type *o_ptr, OBJECT_TYPE_VALUE tval);
415-extern void display_inven(OBJECT_TYPE_VALUE tval);
416-extern void display_equip(OBJECT_TYPE_VALUE tval);
417-extern COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval);
418-extern COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval);
419415 extern void toggle_inven_equip(void);
420416
421417 /*
--- a/src/player-inventory.h
+++ b/src/player-inventory.h
@@ -4,4 +4,9 @@ extern bool select_ring_slot;
44
55 extern bool is_ring_slot(int i);
66 extern bool get_item_okay(OBJECT_IDX i);
7-extern concptr describe_use(int i);
\ No newline at end of file
7+extern concptr describe_use(int i);
8+
9+extern void display_inven(OBJECT_TYPE_VALUE tval);
10+extern void display_equip(OBJECT_TYPE_VALUE tval);
11+extern COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval);
12+extern COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode, OBJECT_TYPE_VALUE tval);
--- a/src/view-mainwindow.c
+++ b/src/view-mainwindow.c
@@ -26,6 +26,7 @@
2626 #include "player-class.h"
2727 #include "player-race.h"
2828 #include "player-effects.h"
29+#include "player-inventory.h"
2930 #include "monster.h"
3031 #include "view-mainwindow.h"
3132
Show on old repository browser