-
-
Notifications
You must be signed in to change notification settings - Fork 87
地形配列(Dungeon Matrix)
Kasuga Chiyo edited this page Mar 2, 2019
·
5 revisions
ダンジョンの地形データを格納する配列。 多くの場合、STLを使用する。
記事ではdungeonという名前で宣言する。
std::array<std::array<dungeon_t, dungeon_size_x>, dungeon_size_y> dungeon{ {} };std::vector<std::vector<dungeon_t>> dungeon(dungeon_size_y, std::vector<dungeon_t>(dungeon_size_x, 0));Copyright (c) 2018-2021 As Project.
Distributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)