-
-
Notifications
You must be signed in to change notification settings - Fork 81
[ja] Reference_cpp14
ๅฐๅฝขใใผใฟใฎๅคๆฐใ
ใใใงใฏdungeon_t
ใจ่จ่ผใใใ
using dungeon_t = std::uint_fast8_t;
ๅๅใฎ้ใๅฐๅฝขใ็ๆใใใฏใฉในใงใใใ
ไพใใฐRogueLike
ใฏใฉในใSimple Voronoi Island
ใฏใฉในใฎใใจใๆใใ
ๅฐๅฝขๅคๆฐใใใณใใฌใผใใซๆๅฎใใฆๅฎฃ่จใใใ
dtl::RogueLike<dungeon_t> rogue_like;
ๅฎฃ่จๆใซใณใณในใใฉใฏใฟใง"ๅฐๅฝข้ ๅ"ใจ"ๅๅฐๅฝข็ๆใฏใฉในใฎใใฉใกใผใฟ"ใๆๅฎใใใ
dtl::RogueLike<dungeon_t> rogue_like(dungeon, 50);
create้ขๆฐใง"ๅฐๅฝข้ ๅ"ใจ"ๅๅฐๅฝข็ๆใฏใฉในใฎใใฉใกใผใฟ"ใๆๅฎใใใ
rogue_like.create(dungeon, 50);
ใใณใธใงใณใฎๅฐๅฝขใใผใฟใๆ ผ็ดใใ้ ๅใ ๅคใใฎๅ ดๅใ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));
ๅฐๅฝข้ ๅใฎๅคใ2ๅคๅใใๆฉ่ฝใๆไพใใใใใใผใ
ใใใงใฏๆๅฎใใๅฐๅฝข้
ๅๅคๆฐๅใSTL_
ๅฐๅฝข้
ๅๅ
้จใฎๆดๆฐๅใInt_
ใจๅฎ็พฉใใใ
void dungeonBinarization(STL_& stl_, const Int_ value_);
void dungeonBinarization_RangeBasedFor(STL_& stl_, const Int_ value_);
้ ๅๅ ใฎๅคใvalue_ไปฅไธใฎๅคใฎๅ ดๅใฏ1ใไปฃๅ ฅใใใใไปฅๅคใฎๅ ดๅใฏ0ใไปฃๅ ฅใใใ ๅพ่ ใฏ็ฏๅฒใใผในfor็ใ
void dungeonBinarizationBool(STL_& stl_, STL2_& stl2_, const Int_ value_);
stl_้ ๅๅ ใฎๅคใvalue_ไปฅไธใฎๅคใฎๅ ดๅใฏใstl2_้ ๅใซ1ใไปฃๅ ฅใใใใไปฅๅคใฎๅ ดๅใฏ0ใไปฃๅ ฅใใใ
void dungeonBinarization(STL_& stl_);
void dungeonBinarization_RangeBasedFor(STL_& stl_);
้ ๅๅ ใฎๅคใtrueใฎๅ ดๅใฏ1ใไปฃๅ ฅใใใใไปฅๅคใฎๅ ดๅใฏ0ใไปฃๅ ฅใใใ ๅพ่ ใฏ็ฏๅฒใใผในfor็ใ
void dungeonBinarizationBool(STL_& stl_, STL2_& stl2_);
stl_้ ๅๅ ใฎๅคใtrueใฎๅ ดๅใฏใstl2_้ ๅใซ1ใไปฃๅ ฅใใใใไปฅๅคใฎๅ ดๅใฏ0ใไปฃๅ ฅใใใ
ๅฐๅฝข้ ๅใฎๅคใซใใคใบใ็บ็ใใใๆฉ่ฝใๆไพใใใใใใผใ
ใใใงใฏๆๅฎใใๅฐๅฝข้
ๅๅคๆฐๅใSTL_
ๅฐๅฝข้
ๅๅ
้จใฎๆดๆฐๅใInt_
ใใคใบ็บ็็ขบ็ใdouble
ใฎrbool_
ใใคใบ็บ็ใฎๅค็ฝฎๆใInt_
ใฎtrue_tile_
ใจfalse_tile_
ใจๅฎ็พฉใใใ
void noiseBool(STL_& stl_, const double rbool_, const Int_ true_tile_ = 1, const Int_ false_tile_ = 0);
void noiseBool_RangeBasedFor(STL_& stl_, const double rbool_, const Int_ true_tile_ = 1, const Int_ false_tile_ = 0);
ใใคใบ็บ็็ขบ็ใtrue
ใฎๆใ
้
ๅๅ
ใฎๅคใtrue
ใฎๅ ดๅใฏfalse_tile_
ใไปฃๅ
ฅใใfalse
ใฎๅ ดๅใฏtrue_tile_
ใไปฃๅ
ฅใใใ
ๅพ่
ใฏ็ฏๅฒใใผในfor็ใ
void noiseShoreBool(STL_& stl_, const double rbool_);
void rnoiseShoreBool(STL_& stl_, const double rbool_);
"ใใคใบ็บ็็ขบ็ใtrue
"ใใค"้ฃๆฅใใใในใฎๅคใ็ฐใชใ(ๅฒธ)"ใฎๆใ
้
ๅๅ
ใฎๅคใtrue
ใฎๅ ดๅใฏfalse
ใไปฃๅ
ฅใใfalse
ใฎๅ ดๅใฏtrue
ใไปฃๅ
ฅใใใ
noiseShoreBool
ใฏไธๆนๅใใใฎๆขๆปใ
rnoiseShoreBool
ใฏไธๆนๅใใใฎๆขๆปใงใใใ
void noiseShoreBothBool(STL_& stl_, const double rbool_);
void noiseShoreBothBool(STL_& stl_, const double rbool1_, const double rbool2_);
void rnoiseShoreBothBool(STL_& stl_, const double rbool_);
void rnoiseShoreBothBool(STL_& stl_, const double rbool1_, const double rbool2_);
noiseShoreBool
ใจrnoiseShoreBool
ใฎไธกๆนใฎๆไฝใ่กใใ
void noiseShore(STL_& stl_, const double rbool_, const Int_ true_tile_ = 1, const Int_ false_tile_ = 0);
void rnoiseShore(STL_& stl_, const double rbool_, const Int_ true_tile_ = 1, const Int_ false_tile_ = 0);
ใใคใบ็บ็็ขบ็ใtrue
ใใค"้ฃๆฅใใใในใฎๅคใ็ฐใชใ(ๅฒธ)"ใฎๆใ
้
ๅๅ
ใฎๅคใtrue
ใฎๅ ดๅใฏfalse_tile_
ใไปฃๅ
ฅใใfalse
ใฎๅ ดๅใฏtrue_tile_
ใไปฃๅ
ฅใใใ
noiseShoreBool
ใฏไธๆนๅใใใฎๆขๆปใ
rnoiseShoreBool
ใฏไธๆนๅใใใฎๆขๆปใงใใใ
void noiseShoreOver(STL_& stl_, const double rbool_, const Int_ true_tile_ = 1, const Int_ false_tile_ = 0);
void rnoiseShoreOver(STL_& stl_, const double rbool_, const Int_ true_tile_ = 1, const Int_ false_tile_ = 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)