• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiona42256172d1346a4a57b0a33d5bbbe3b8744c196 (tree)
Time2019-05-03 01:40:43
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 object1.h の宣言を整理

Change Summary

Incremental Difference

--- a/src/externs.h
+++ b/src/externs.h
@@ -355,31 +355,6 @@ extern void choose_new_monster(MONSTER_IDX m_idx, bool born, MONRACE_IDX r_idx);
355355 extern SPEED get_mspeed(monster_race *r_ptr);
356356 extern void monster_drop_carried_objects(monster_type *m_ptr);
357357
358-/* object1.c */
359-extern void reset_visuals(void);
360-extern void object_flags(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE]);
361-extern void object_flags_known(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE]);
362-extern concptr item_activation(object_type *o_ptr);
363-extern bool screen_object(object_type *o_ptr, BIT_FLAGS mode);
364-extern char index_to_label(int i);
365-extern INVENTORY_IDX label_to_inven(int c);
366-extern INVENTORY_IDX label_to_equip(int c);
367-extern s16b wield_slot(object_type *o_ptr);
368-extern concptr mention_use(int i);
369-extern concptr describe_use(int i);
370-extern bool check_book_realm(const OBJECT_TYPE_VALUE book_tval, const OBJECT_SUBTYPE_VALUE book_sval);
371-extern bool item_tester_okay(object_type *o_ptr);
372-extern void display_inven(void);
373-extern void display_equip(void);
374-extern COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode);
375-extern COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode);
376-extern void toggle_inven_equip(void);
377-extern bool can_get_item(void);
378-extern bool get_item(OBJECT_IDX *cp, concptr pmt, concptr str, BIT_FLAGS mode);
379-extern object_type *choose_object(OBJECT_IDX *idx, concptr q, concptr s, BIT_FLAGS option);
380-PERCENTAGE breakage_chance(object_type *o_ptr, SPELL_IDX snipe_type);
381-
382-
383358 /* racial.c */
384359 extern void do_cmd_racial_power(void);
385360
--- a/src/object.h
+++ b/src/object.h
@@ -86,6 +86,30 @@ struct object_type
8686 ARTIFACT_BIAS_IDX artifact_bias; /*!< ランダムアーティファクト生成時のバイアスID */
8787 };
8888
89+/* object1.c */
90+extern void reset_visuals(void);
91+extern void object_flags(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE]);
92+extern void object_flags_known(object_type *o_ptr, BIT_FLAGS flgs[TR_FLAG_SIZE]);
93+extern concptr item_activation(object_type *o_ptr);
94+extern bool screen_object(object_type *o_ptr, BIT_FLAGS mode);
95+extern char index_to_label(int i);
96+extern INVENTORY_IDX label_to_inven(int c);
97+extern INVENTORY_IDX label_to_equip(int c);
98+extern s16b wield_slot(object_type *o_ptr);
99+extern concptr mention_use(int i);
100+extern concptr describe_use(int i);
101+extern bool check_book_realm(const OBJECT_TYPE_VALUE book_tval, const OBJECT_SUBTYPE_VALUE book_sval);
102+extern bool item_tester_okay(object_type *o_ptr);
103+extern void display_inven(void);
104+extern void display_equip(void);
105+extern COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode);
106+extern COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode);
107+extern void toggle_inven_equip(void);
108+extern bool can_get_item(void);
109+extern bool get_item(OBJECT_IDX *cp, concptr pmt, concptr str, BIT_FLAGS mode);
110+extern object_type *choose_object(OBJECT_IDX *idx, concptr q, concptr s, BIT_FLAGS option);
111+PERCENTAGE breakage_chance(object_type *o_ptr, SPELL_IDX snipe_type);
112+
89113 extern int bow_tval_ammo(object_type *o_ptr);
90114 /* object2.c */
91115 extern void excise_object_idx(OBJECT_IDX o_idx);
Show on old repository browser