OSDN Git Service

[Feature] *_info 配列の要素のメンバに自身のindexを持たせる
authorHabu <habu1010+github@gmail.com>
Sat, 18 Sep 2021 14:26:34 +0000 (23:26 +0900)
committerHabu <habu1010+github@gmail.com>
Sat, 18 Sep 2021 14:26:34 +0000 (23:26 +0900)
commit6338f2963ed64a75b45b6b4c6442d480ebdcf160
tree004965aea51831fcbb3ff0a518ba680df28cf1c1
parentccee6c1c47fe9970eba10038ef1eba7c3bc96d85
[Feature] *_info 配列の要素のメンバに自身のindexを持たせる

配列のループ処理を range-based for で記述したいのに、中で要素の
index が必要な時に結局ループ変数を使用することになる。
自身のindexを持っておけば、それを参照すればよくなる。
14 files changed:
src/dungeon/dungeon.h
src/grid/feature.h
src/info-reader/artifact-reader.cpp
src/info-reader/dungeon-reader.cpp
src/info-reader/ego-reader.cpp
src/info-reader/feature-reader.cpp
src/info-reader/kind-reader.cpp
src/info-reader/race-reader.cpp
src/info-reader/vault-reader.cpp
src/object-enchant/object-ego.h
src/object/object-kind.h
src/room/rooms-vault.h
src/system/artifact-type-definition.h
src/system/monster-race-definition.h