OSDN Git Service

hengbandforosx/hengbandosx.git
2 years agoMerge pull request #1463 from habu1010/feature/fix-x11-resource-leak
Habu [Sun, 5 Sep 2021 14:09:11 +0000 (23:09 +0900)]
Merge pull request #1463 from habu1010/feature/fix-x11-resource-leak

[Fix] X11版インターフェースのリソースリーク

2 years agoMerge pull request #1470 from sikabane-works/release/3.0.0Alpha37
Deskull [Sun, 5 Sep 2021 12:56:38 +0000 (21:56 +0900)]
Merge pull request #1470 from sikabane-works/release/3.0.0Alpha37

[Release] 3.0.0Alpha37

2 years ago[Release] 3.0.0Alpha37
Deskull [Sun, 5 Sep 2021 12:34:28 +0000 (21:34 +0900)]
[Release] 3.0.0Alpha37

2 years ago[Fix] X11版インターフェースのリソースリーク
Habu [Sat, 4 Sep 2021 11:12:35 +0000 (20:12 +0900)]
[Fix] X11版インターフェースのリソースリーク

Memory Sanitizer のノイズとなるので見つけうる限りのリソース漏れ
コードを修正する。

XIMとXftに関するリソース漏れだけはどうしても修正できなかった。
ライブラリの仕様としてどうしても完全にリソース漏れ無しにできない
可能性がある。

2 years agoMerge pull request #1467 from Hourier/feature/Unite-Grid-Type-Alpha37
Hourier [Sun, 5 Sep 2021 09:20:10 +0000 (18:20 +0900)]
Merge pull request #1467 from Hourier/feature/Unite-Grid-Type-Alpha37

grid-type.cpp/h のリファクタリング&メソッド移動

2 years agoMerge pull request #1465 from Hourier/feature/Replace-NULL-to-nullptr
Hourier [Sun, 5 Sep 2021 09:10:13 +0000 (18:10 +0900)]
Merge pull request #1465 from Hourier/feature/Replace-NULL-to-nullptr

'NULL' を 'nullptr' に変える (Win32APIを除く)

2 years ago[Refactor] #1444 Added const to all methods in grid_type
Hourier [Fri, 3 Sep 2021 12:46:08 +0000 (21:46 +0900)]
[Refactor] #1444 Added const to all methods in grid_type

2 years ago[Refactor] #1444 ついでながらtgt_pt_move_to_symbol() をtgt_pt_info::move_to_symbol() に繰り込んだ
Hourier [Fri, 3 Sep 2021 12:42:28 +0000 (21:42 +0900)]
[Refactor] #1444 ついでながらtgt_pt_move_to_symbol() をtgt_pt_info::move_to_symbol() に繰り込んだ

2 years ago[Refactor] #1444 Renamed cave_is_symbol_grid() to is_symbol() and moved from grid...
Hourier [Fri, 3 Sep 2021 12:07:46 +0000 (21:07 +0900)]
[Refactor] #1444 Renamed cave_is_symbol_grid() to is_symbol() and moved from grid-selector.cpp to grid-type-definition.cpp/h

2 years ago[Refactor] #1444 Reshaped cave_set_feat()
Hourier [Fri, 3 Sep 2021 11:59:57 +0000 (20:59 +0900)]
[Refactor] #1444 Reshaped cave_set_feat()

2 years ago[Refactor] #1444 Removed player_has_los_grid() and replaced it to is_view()
Hourier [Fri, 3 Sep 2021 11:58:50 +0000 (20:58 +0900)]
[Refactor] #1444 Removed player_has_los_grid() and replaced it to is_view()

2 years ago[Refactor] #1448 Replaced 'NULL' to 'nullptr' except for Win32API
Hourier [Sun, 5 Sep 2021 02:15:19 +0000 (11:15 +0900)]
[Refactor] #1448 Replaced 'NULL' to 'nullptr' except for Win32API

2 years ago[Refactor] #1448 Replaced 'return (NULL);' to 'return nullptr;'
Hourier [Sun, 5 Sep 2021 02:07:22 +0000 (11:07 +0900)]
[Refactor] #1448 Replaced 'return (NULL);' to 'return nullptr;'

2 years ago[Refactor] #1448 Changed 'NULL == hoge' to 'hoge == nullptr'
Hourier [Sun, 5 Sep 2021 02:05:24 +0000 (11:05 +0900)]
[Refactor] #1448 Changed 'NULL == hoge' to 'hoge == nullptr'

2 years ago[Refactor] #1448 Reshaped automatically for non-Windows main*.cpp
Hourier [Sun, 5 Sep 2021 01:19:29 +0000 (10:19 +0900)]
[Refactor] #1448 Reshaped automatically for non-Windows main*.cpp

2 years agoMerge pull request #1462 from Hourier/feature/Delete-Unused-Hook-Files
Hourier [Sat, 4 Sep 2021 11:16:02 +0000 (20:16 +0900)]
Merge pull request #1462 from Hourier/feature/Delete-Unused-Hook-Files

使われていないhook-*.cpp/h の削除

2 years ago[Refactor] Deleted unused hook-*.cpp/h
Hourier [Sat, 4 Sep 2021 10:16:51 +0000 (19:16 +0900)]
[Refactor] Deleted unused hook-*.cpp/h

2 years agoMerge pull request #1461 from habu1010/feature/object-flags-change-interface
Habu [Sat, 4 Sep 2021 10:49:20 +0000 (19:49 +0900)]
Merge pull request #1461 from habu1010/feature/object-flags-change-interface

[Refactor] object_flags関数のインターフェースを変更する

2 years ago[Refactor] object_flags_known のインターフェース変更
Habu [Sat, 4 Sep 2021 09:31:44 +0000 (18:31 +0900)]
[Refactor] object_flags_known のインターフェース変更

object_flags関数と同様のインターフェース変更をobject_flags_known
関数にも適用する。

2 years agoMerge pull request #1416 from Hourier/feature/Remove-Unused-Preprocessor
Hourier [Sat, 4 Sep 2021 09:41:46 +0000 (18:41 +0900)]
Merge pull request #1416 from Hourier/feature/Remove-Unused-Preprocessor

もう使われていないプリプロの削除@h-system.h

2 years agoMerge pull request #1408 from sikabane-works/feature/refactor-avatar-comments
Deskull [Sat, 4 Sep 2021 09:26:15 +0000 (18:26 +0900)]
Merge pull request #1408 from sikabane-works/feature/refactor-avatar-comments

[Refactor] avatar ディレクトリ以下のコメントをDoxygen向けに追加、整理.

2 years agoMerge pull request #1421 from sikabane-works/feature/refactor-io-dump-comment
Deskull [Sat, 4 Sep 2021 09:26:00 +0000 (18:26 +0900)]
Merge pull request #1421 from sikabane-works/feature/refactor-io-dump-comment

[Refactor] io-dump ディレクトリ内のコメントを Doxygen 向けに整理.

2 years ago[Refactor] object_flags のインターフェース変更
Habu [Sat, 4 Sep 2021 09:05:30 +0000 (18:05 +0900)]
[Refactor] object_flags のインターフェース変更

object_flags関数でアイテムのフラグ情報の変数を得る方法を、引数にフラグ
情報変数を渡して書き換えてもらう方式から、戻り値でフラグ情報変数を
取得する方法に変更する。
このほうがフラグ情報を得るインターフェースとして明白であるし、RVOに
より最適化されるのでオブジェクトのコピーも発生せずパフォーマンスにも
問題はない。

2 years ago[Refactor] TrFlagsを生配列からstd::arrayにする
Habu [Sat, 4 Sep 2021 09:20:03 +0000 (18:20 +0900)]
[Refactor] TrFlagsを生配列からstd::arrayにする

今後のリファクタリングを見据えるため、TrFlagsを生配列から
std::array型へ変更する。
これに伴い、配列インデックスのループによる処理を以下の通り
置き換える。

- クリア → std::array::fill メソッドによるクリア
- コピー → 構造体のコピー代入
- 比較 → std::arrayクラスの比較演算子による比較

2 years ago[Style] apply clang-format
Habu [Sat, 4 Sep 2021 09:20:03 +0000 (18:20 +0900)]
[Style] apply clang-format

2 years agoMerge pull request #1458 from Hourier/feature/Replace-Typedef
Hourier [Sat, 4 Sep 2021 09:16:04 +0000 (18:16 +0900)]
Merge pull request #1458 from Hourier/feature/Replace-Typedef

typedef struct hoge_type hoge_type; をstruct hoge_type; に置換する

2 years ago[Refactor] #1447 Removed typedef declerations in main-*.cpp regarding Linux
Hourier [Sat, 4 Sep 2021 08:26:56 +0000 (17:26 +0900)]
[Refactor] #1447 Removed typedef declerations in main-*.cpp regarding Linux

2 years ago[Refactor] #1447 Replaced 'typedef struct old_race_flags old_race_flags;' to 'struct...
Hourier [Sat, 4 Sep 2021 08:20:24 +0000 (17:20 +0900)]
[Refactor] #1447 Replaced 'typedef struct old_race_flags old_race_flags;' to 'struct old_race_flags;'

2 years ago[Refactor] #1447 Replaced 'typedef struct turn_flags turn_flags;' to 'struct turn_flags;'
Hourier [Sat, 4 Sep 2021 08:19:37 +0000 (17:19 +0900)]
[Refactor] #1447 Replaced 'typedef struct turn_flags turn_flags;' to 'struct turn_flags;'

2 years ago[Refactor] #1447 Replaced 'typedef struct saved_floor_type saved_floor_type;' to...
Hourier [Sat, 4 Sep 2021 07:07:30 +0000 (16:07 +0900)]
[Refactor] #1447 Replaced 'typedef struct saved_floor_type saved_floor_type;' to 'struct saved_floor_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct player_attack_type player_attack_type;...
Hourier [Sat, 4 Sep 2021 07:05:55 +0000 (16:05 +0900)]
[Refactor] #1447 Replaced 'typedef struct player_attack_type player_attack_type;' to 'struct player_attack_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct flavor_type flavor_type;' to 'struct flavor...
Hourier [Sat, 4 Sep 2021 07:04:09 +0000 (16:04 +0900)]
[Refactor] #1447 Replaced 'typedef struct flavor_type flavor_type;' to 'struct flavor_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct bmc_type bmc_type;' to 'struct bmc_type;'
Hourier [Sat, 4 Sep 2021 07:03:24 +0000 (16:03 +0900)]
[Refactor] #1447 Replaced 'typedef struct bmc_type bmc_type;' to 'struct bmc_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct activation_type activation_type;' to 'struc...
Hourier [Sat, 4 Sep 2021 07:01:46 +0000 (16:01 +0900)]
[Refactor] #1447 Replaced 'typedef struct activation_type activation_type;' to 'struct activation_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct lore_type lore_type;' to 'struct lore_type;'
Hourier [Sat, 4 Sep 2021 06:58:50 +0000 (15:58 +0900)]
[Refactor] #1447 Replaced 'typedef struct lore_type lore_type;' to 'struct lore_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct effect_player_type effect_player_type;...
Hourier [Sat, 4 Sep 2021 06:55:59 +0000 (15:55 +0900)]
[Refactor] #1447 Replaced 'typedef struct effect_player_type effect_player_type;' to 'struct effect_player_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct effect_monster_type effect_monster_type...
Hourier [Sat, 4 Sep 2021 06:55:08 +0000 (15:55 +0900)]
[Refactor] #1447 Replaced 'typedef struct effect_monster_type effect_monster_type;' to 'struct effect_monster_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct rc_type rc_type;' to 'struct rc_type;'
Hourier [Sat, 4 Sep 2021 06:53:37 +0000 (15:53 +0900)]
[Refactor] #1447 Replaced 'typedef struct rc_type rc_type;' to 'struct rc_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct rpi_type rpi_type;' to 'struct rpi_type;'
Hourier [Sat, 4 Sep 2021 06:53:29 +0000 (15:53 +0900)]
[Refactor] #1447 Replaced 'typedef struct rpi_type rpi_type;' to 'struct rpi_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct text_body_type text_body_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:50:47 +0000 (15:50 +0900)]
[Refactor] #1447 Replaced 'typedef struct text_body_type text_body_type;' to 'struct text_body_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct self_info_type self_info_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:49:29 +0000 (15:49 +0900)]
[Refactor] #1447 Replaced 'typedef struct self_info_type self_info_type;' to 'struct self_info_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct dt_type dt_type;' to 'struct dt_type;'
Hourier [Sat, 4 Sep 2021 06:43:54 +0000 (15:43 +0900)]
[Refactor] #1447 Replaced 'typedef struct dt_type dt_type;' to 'struct dt_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct dungeon_type dungeon_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:42:41 +0000 (15:42 +0900)]
[Refactor] #1447 Replaced 'typedef struct dungeon_type dungeon_type;' to 'struct dungeon_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct dun_data_type dun_data_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:41:57 +0000 (15:41 +0900)]
[Refactor] #1447 Replaced 'typedef struct dun_data_type dun_data_type;' to 'struct dun_data_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct monster_race monster_race;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:40:50 +0000 (15:40 +0900)]
[Refactor] #1447 Replaced 'typedef struct monster_race monster_race;' to 'struct monster_race;'

2 years ago[Refactor] #1447 Replaced 'typedef struct monster_type monster_type;' to 'struct...
Hourier [Sat, 4 Sep 2021 06:40:10 +0000 (15:40 +0900)]
[Refactor] #1447 Replaced 'typedef struct monster_type monster_type;' to 'struct monster_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct grid_type grid_type;' to 'struct grid_type;'
Hourier [Sat, 4 Sep 2021 06:38:33 +0000 (15:38 +0900)]
[Refactor] #1447 Replaced 'typedef struct grid_type grid_type;' to 'struct grid_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct object_type object_type;' to 'struct object...
Hourier [Sat, 4 Sep 2021 06:38:02 +0000 (15:38 +0900)]
[Refactor] #1447 Replaced 'typedef struct object_type object_type;' to 'struct object_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct floor_type floor_type;' to 'struct floor_type;'
Hourier [Sat, 4 Sep 2021 06:37:03 +0000 (15:37 +0900)]
[Refactor] #1447 Replaced 'typedef struct floor_type floor_type;' to 'struct floor_type;'

2 years ago[Refactor] #1447 Replaced 'typedef struct player_type player_type;' to 'struct player...
Hourier [Sat, 4 Sep 2021 06:35:44 +0000 (15:35 +0900)]
[Refactor] #1447 Replaced 'typedef struct player_type player_type;' to 'struct player_type;'

2 years agoMerge pull request #1457 from Hourier/feature/Remove-Macro-Function-SGN
Hourier [Sat, 4 Sep 2021 05:34:52 +0000 (14:34 +0900)]
Merge pull request #1457 from Hourier/feature/Remove-Macro-Function-SGN

SGN() の削除 他 jump_floors() の微修正

2 years ago[Refactor] #1435 Replaced bit calculations in jump_floors()
Hourier [Mon, 30 Aug 2021 13:01:41 +0000 (22:01 +0900)]
[Refactor] #1435 Replaced bit calculations in jump_floors()

2 years ago[Refactor] #1435 Reshaped jump_floors()
Hourier [Mon, 30 Aug 2021 12:59:32 +0000 (21:59 +0900)]
[Refactor] #1435 Reshaped jump_floors()

2 years ago[Refactor] #1435 Remove SGN() in h-define.h
Hourier [Mon, 30 Aug 2021 12:58:30 +0000 (21:58 +0900)]
[Refactor] #1435 Remove SGN() in h-define.h

2 years agoMerge pull request #1456 from Hourier/feature/Remove-Compilation-Warning
Hourier [Sat, 4 Sep 2021 05:19:00 +0000 (14:19 +0900)]
Merge pull request #1456 from Hourier/feature/Remove-Compilation-Warning

object_type::is_offerable() のコンパイル警告修正

2 years agoMerge pull request #1453 from habu1010/feature/random-new-high-resistance
Habu [Sat, 4 Sep 2021 05:10:34 +0000 (14:10 +0900)]
Merge pull request #1453 from habu1010/feature/random-new-high-resistance

上位耐性のランダム付与とランダムアーティファクトに 3.0.0Alpha で新しく追加された耐性が付与されるようにする

2 years ago[Refactor] Fixed compilation warning in object-type-definition.cpp
Hourier [Sat, 4 Sep 2021 04:32:51 +0000 (13:32 +0900)]
[Refactor] Fixed compilation warning in object-type-definition.cpp

2 years ago[Refactor] フラグ付与処理関数の共通化
Habu [Sat, 4 Sep 2021 03:54:22 +0000 (12:54 +0900)]
[Refactor] フラグ付与処理関数の共通化

同じようなフラグ付与処理を行う関数がフラグ毎に存在しているので、
フラグを引数で渡すようにして処理を共通化する。
また、共通化した事によってこれまで氷免疫フラグが付与された時に
6/7の確率で付与したばかりのフラグが削除されていた不具合も同時に
解消される。

2 years ago[Feature] ランダムアーティファクトへの新上位耐性の付与
Habu [Sat, 4 Sep 2021 03:04:22 +0000 (12:04 +0900)]
[Feature] ランダムアーティファクトへの新上位耐性の付与

ランダムアーティファクトに 3.0.0Alpha で追加された新しい上位耐性の、
時間逆転・水・呪力耐性が付与されるようにする。
付与される確率は閃光・暗黒耐性を除く他の上位耐性の 1/2 だが、
BIAS_RANGER の時は水耐性(ついでに毒耐性も)、BIAS_PRIESTLY の時は
呪力耐性が付与されるようにする。また逆にそれぞれの耐性の付与時に
確率で BIAS_RANGER と BIAS_PRIESTLY を設定するようにする。

2 years ago[Feature] ランダムに付与される上位耐性の種類を追加
Habu [Sat, 4 Sep 2021 02:55:48 +0000 (11:55 +0900)]
[Feature] ランダムに付与される上位耐性の種類を追加

3.0.0Alphaで追加された上位耐性フラグ TR_RES_TIME・TR_RES_WATER・
TR_RES_CURSE をランダムな上位耐性追加処理により付与されるようにする。
付与される確率は他の上位耐性と等確率。

2 years agoMerge pull request #1445 from Hourier/feature/Refactor-get-random-art-filename
Hourier [Sat, 4 Sep 2021 01:47:15 +0000 (10:47 +0900)]
Merge pull request #1445 from Hourier/feature/Refactor-get-random-art-filename

ランダムアーティファクトの銘を選択するルーチンが冗長だったので簡略化した

2 years ago[Refactor] ランダムアーティファクトの銘を選択するルーチンが冗長だったので簡略化した / Simplified get_random_art_filename...
Hourier [Thu, 2 Sep 2021 14:10:04 +0000 (23:10 +0900)]
[Refactor] ランダムアーティファクトの銘を選択するルーチンが冗長だったので簡略化した / Simplified get_random_art_filename() because it's redundant

2 years agoMerge pull request #1446 from habu1010/feature/incorporate-object-function-into-menbe...
Habu [Sat, 4 Sep 2021 00:55:10 +0000 (09:55 +0900)]
Merge pull request #1446 from habu1010/feature/incorporate-object-function-into-menber-function

object_is_foobar() 系の関数を object_type のメンバ関数にする

2 years ago[Refactor] ソースコードの可読性の向上
Habu [Fri, 3 Sep 2021 23:53:46 +0000 (08:53 +0900)]
[Refactor] ソースコードの可読性の向上

PR #1446 のレビューに基づき、ソースコードの可読性を向上させる。

2 years ago[Refactor] object_is_activatable() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 11:45:52 +0000 (20:45 +0900)]
[Refactor] object_is_activatable() を object_type のメンバ関数化

2 years ago[Refactor] object_is_offerable() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 05:35:50 +0000 (14:35 +0900)]
[Refactor] object_is_offerable() を object_type のメンバ関数化

2 years ago[Refactor] object_is_rechargeable() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 05:28:02 +0000 (14:28 +0900)]
[Refactor] object_is_rechargeable() を object_type のメンバ関数化

2 years ago[Refactor] object_can_refill_*() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 05:22:32 +0000 (14:22 +0900)]
[Refactor] object_can_refill_*() を object_type のメンバ関数化

is_refill_lantern は can_refill_lantern に改名する。

2 years ago[Refactor] object_is_readable() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 05:17:09 +0000 (14:17 +0900)]
[Refactor] object_is_readable() を object_type のメンバ関数化

2 years ago[Refactor] object_is_potion を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 02:53:57 +0000 (11:53 +0900)]
[Refactor] object_is_potion を object_type のメンバ関数化

2 years ago[Refactor] object_is_tried() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 02:48:23 +0000 (11:48 +0900)]
[Refactor] object_is_tried() を object_type のメンバ関数化

2 years ago[Refactor] object_is_aware() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 02:43:15 +0000 (11:43 +0900)]
[Refactor] object_is_aware() を object_type のメンバ関数化

2 years ago[Refactor] object_is_known()/fully_known() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 02:36:55 +0000 (11:36 +0900)]
[Refactor] object_is_known()/fully_known() を object_type のメンバ関数化

2 years ago[Refactor] object_is_held_monster() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 02:23:24 +0000 (11:23 +0900)]
[Refactor] object_is_held_monster() を object_type のメンバ関数化

is_held_monster() ではモンスターによって所持されているというニュアンスに
ならないので is_held_by_monster() に改名する。

2 years ago[Refactor] object_is_cursed() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 02:17:35 +0000 (11:17 +0900)]
[Refactor] object_is_cursed() を object_type のメンバ関数化

2 years ago[Refactor] object_is_broken() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 02:04:34 +0000 (11:04 +0900)]
[Refactor] object_is_broken() を object_type のメンバ関数化

2 years ago[Refactor] object_is_valid() を object_type のメンバ関数化
Habu [Fri, 3 Sep 2021 01:43:26 +0000 (10:43 +0900)]
[Refactor] object_is_valid() を object_type のメンバ関数化

2 years ago[Refactor] アーティファクト関連の object_is_foobar() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 17:12:46 +0000 (02:12 +0900)]
[Refactor] アーティファクト関連の object_is_foobar() を object_type のメンバ関数化

- object_is_artifact
- object_is_fixed_artifact
- object_is_random_artifact
- object_is_nameless

2 years ago[Refactor] object_is_smith() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 17:02:33 +0000 (02:02 +0900)]
[Refactor] object_is_smith() を object_type のメンバ関数化

2 years ago[Refactor] object_is_melee_ammo() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:59:23 +0000 (01:59 +0900)]
[Refactor] object_is_melee_ammo() を object_type のメンバ関数化

2 years ago[Refactor] object_is_ego() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:47:49 +0000 (01:47 +0900)]
[Refactor] object_is_ego() を object_type のメンバ関数化

2 years ago[Refactor] object_is_rare() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:44:16 +0000 (01:44 +0900)]
[Refactor] object_is_rare() を object_type のメンバ関数化

2 years ago[Refactor] object_is_convertible() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:36:28 +0000 (01:36 +0900)]
[Refactor] object_is_convertible() を object_type のメンバ関数化

2 years ago[Refactor] object_is_ammo() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:33:15 +0000 (01:33 +0900)]
[Refactor] object_is_ammo() を object_type のメンバ関数化

2 years ago[Refactor] object_allow_two_hands_wielding() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:22:34 +0000 (01:22 +0900)]
[Refactor] object_allow_two_hands_wielding() を object_type のメンバ関数化

2 years ago[Refactor] object_*_enchant_*() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:15:44 +0000 (01:15 +0900)]
[Refactor] object_*_enchant_*() を object_type のメンバ関数化

2 years ago[Refactor] object_is_mochikae() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 16:03:17 +0000 (01:03 +0900)]
[Refactor] object_is_mochikae() を object_type のメンバ関数化

2 years ago[Refactor] object_is_boomerang() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 15:56:53 +0000 (00:56 +0900)]
[Refactor] object_is_boomerang() を object_type のメンバ関数化

is_boomerang では意味が通じにくいので、is_throwable に改名する。

2 years ago[Refactor] object_is_broken_weapon() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 15:50:45 +0000 (00:50 +0900)]
[Refactor] object_is_broken_weapon() を object_type のメンバ関数化

2 years ago[Refactor] object_is_orthodox_melee_weapons() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 15:48:56 +0000 (00:48 +0900)]
[Refactor] object_is_orthodox_melee_weapons() を object_type のメンバ関数化

2 years ago[Refactor] object_is_equipment() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 15:44:16 +0000 (00:44 +0900)]
[Refactor] object_is_equipment() を object_type のメンバ関数化

2 years ago[Refactor] object_is_wearable() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 15:38:51 +0000 (00:38 +0900)]
[Refactor] object_is_wearable() を object_type のメンバ関数化

2 years ago[Refactor] object_is_melee_weapon() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 15:25:04 +0000 (00:25 +0900)]
[Refactor] object_is_melee_weapon() を object_type のメンバ関数化

2 years ago[Refactor] 両手の装備にアクセスするポインタ変数を使用する
Habu [Thu, 2 Sep 2021 15:15:27 +0000 (00:15 +0900)]
[Refactor] 両手の装備にアクセスするポインタ変数を使用する

何度も creature_ptr->inventory_list[INVEN_*_HAND] が出てきて読みづらい
ので、一旦ポインタ変数に受けておき、ポインタ変数経由でアクセスする。

2 years ago[Refactor] object_is_weapon_armour_ammo() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 14:59:41 +0000 (23:59 +0900)]
[Refactor] object_is_weapon_armour_ammo() を object_type のメンバ関数化

2 years ago[Refactor] object_is_weapon_ammo() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 14:54:58 +0000 (23:54 +0900)]
[Refactor] object_is_weapon_ammo() を object_type のメンバ関数化

2 years ago[Refactor] object_is_weapon() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 14:50:15 +0000 (23:50 +0900)]
[Refactor] object_is_weapon() を object_type のメンバ関数化

2 years ago[Refactor] object_is_armor() を object_type のメンバ関数化
Habu [Thu, 2 Sep 2021 14:16:39 +0000 (23:16 +0900)]
[Refactor] object_is_armor() を object_type のメンバ関数化

2 years ago[Feature] FuncItemTesterにメンバ関数ポインタを引数に受け取るコンストラクタを追加
Habu [Thu, 2 Sep 2021 14:13:21 +0000 (23:13 +0900)]
[Feature] FuncItemTesterにメンバ関数ポインタを引数に受け取るコンストラクタを追加

FuncItemTesterクラスにobject_typeのメンバ関数ポインタを受け取る
コンストラクタを追加する。
このコンストラクタで構築されたFuncItemTesterオブジェクトは、okay
関数の引数で受け取ったobject_typeオブジェクトに対し上記のメンバ
関数ポインタによりメンバ関数を呼び出し、その戻り値によりアイテムが
条件に合うかどうかをテストする。

2 years ago[Refactor] #1415 Moved unused preprocessors in Windows from all OSs to non-Windows...
Hourier [Thu, 2 Sep 2021 13:39:07 +0000 (22:39 +0900)]
[Refactor] #1415 Moved unused preprocessors in Windows from all OSs to non-Windows only in h-system.h