OSDN Git Service

[Reafctor] 特定の領域かどうかを調べる判定
authorHabu <habu1010+github@gmail.com>
Tue, 2 Jul 2024 13:33:10 +0000 (22:33 +0900)
committerHabu <habu1010+github@gmail.com>
Tue, 2 Jul 2024 13:33:10 +0000 (22:33 +0900)
commitd43c2669c975d0948a7837bf9b23316733e19088
tree7310a6151208dccb506843da06475b2be3a87cd9
parentd5488a5f1b35fd4c6e7736734af8d426067b07e5
[Reafctor] 特定の領域かどうかを調べる判定

PlayerRealm::Realmクラスにメンバ関数equalsを実装し、現在PlayerTypeの
データメンバrealm1およびrealm2との直接比較によって特定の領域であるかを
調べている箇所を置き換える。
また、呪術ハイメイジ専用処理で第1領域がREALM_HEXであるかどうかを調べて
いる箇所は特別に多いので、PlayerRealmクラスにメンバ関数is_realm_hexを
実装し、この関数によりチェックするようにする。
19 files changed:
src/cmd-action/cmd-spell.cpp
src/knowledge/knowledge-experiences.cpp
src/player-ability/player-constitution.cpp
src/player-ability/player-dexterity.cpp
src/player-ability/player-strength.cpp
src/player-base/player-class.cpp
src/player-info/class-ability-info.cpp
src/player-status/player-speed.cpp
src/player-status/player-stealth.cpp
src/player/player-realm.cpp
src/player/player-realm.h
src/player/player-skill.cpp
src/player/player-status-flags.cpp
src/player/player-status.cpp
src/racial/class-racial-switcher.cpp
src/racial/racial-switcher.cpp
src/spell/spell-info.cpp
src/view/object-describer.cpp
src/window/main-window-stat-poster.cpp