-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
134 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_C99 | ||
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_C99 | ||
//:::::----------::::::::::----------:::::// | ||
// Dungeon Template Library // | ||
// Made by Gaccho. // | ||
// This code is licensed under CC0. // | ||
// wanotaitei@gmail.com // | ||
//:::::----------::::::::::----------:::::// | ||
|
||
|
||
#include "DungeonBinarization.h" | ||
#include "DungeonNoise.h" | ||
#include "DungeonOutput.h" | ||
#include "DungeonRandom.h" | ||
#include "DungeonStandard.h" | ||
|
||
#include "FractalIsland.h" | ||
#include "MazeDig.h" | ||
#include "SimpleRogueLike.h" | ||
|
||
#endif //Included Dungeon Template Library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY | ||
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY | ||
//:::::----------::::::::::----------:::::// | ||
// Dungeon Template Library // | ||
// Made by Gaccho. // | ||
// This code is licensed under CC0. // | ||
// wanotaitei@gmail.com // | ||
//:::::----------::::::::::----------:::::// | ||
|
||
|
||
#include "DungeonBinarization.hpp" | ||
#include "DungeonNoise.hpp" | ||
#include "DungeonOutput.hpp" | ||
#include "DungeonRandom.hpp" | ||
#include "DungeonStandard.hpp" | ||
|
||
#include "FractalIsland.hpp" | ||
#include "MazeDig.hpp" | ||
#include "RogueLike.hpp" | ||
#include "SimpleRogueLike.hpp" | ||
#include "SimpleTerrain1.hpp" | ||
#include "SimpleVoronoiIsland.hpp" | ||
|
||
#endif //Included Dungeon Template Library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef INCLUDED_DUNGEON_TEMPLATE_LIBRARY_SIMPLE_TERRAIN1 | ||
#define INCLUDED_DUNGEON_TEMPLATE_LIBRARY_SIMPLE_TERRAIN1 | ||
//:::::----------::::::::::----------:::::// | ||
// Dungeon Template Library // | ||
// Made by Gaccho. // | ||
// This code is licensed under CC0. // | ||
// wanotaitei@gmail.com // | ||
//:::::----------::::::::::----------:::::// | ||
|
||
#include <cstddef> | ||
#include "DungeonRandom.hpp" | ||
|
||
//Dungeon Template Library Namespace | ||
namespace dtl { | ||
|
||
template<typename Int_> | ||
class SimpleTerrain1 { | ||
public: | ||
//ƒRƒ“ƒXƒgƒ‰ƒNƒ^ | ||
constexpr SimpleTerrain1() noexcept = default; | ||
template<typename STL_> | ||
constexpr explicit SimpleTerrain1(STL_& stl_, const Int_ v1_, const std::size_t v2_ = 2) noexcept { | ||
create(stl_, v1_, v2_); | ||
} | ||
template<typename STL_> | ||
constexpr void create(STL_& stl_, const Int_ v1_, const std::size_t v2_ = 2) noexcept { | ||
|
||
for (std::size_t i{}; i < stl_.size(); i += v2_) { | ||
for (std::size_t j{}; j < stl_[i].size(); j += v2_) { | ||
stl_[i][j] = static_cast<Int_>(v1_); | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
}; | ||
|
||
} | ||
|
||
#endif //Included Dungeon Template Library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters