-
-
Notifications
You must be signed in to change notification settings - Fork 88
v0.1.X Readme
Kasugaccho edited this page Apr 30, 2019
·
1 revision
DTL (Dungeon Template Library)
using dungeon_t = std::uint_fast8_t;
constexpr std::size_t x_size{ 12 };
constexpr std::size_t y_size{ 8 };
| Required Class Function: | operator[] | size |
|---|
std::array<std::array<dungeon_t, x_size>, y_size> dungeon_stl_matrix{ {} };
| Required Class Function: | operator[] |
|---|
dungeon_t dungeon_default_matrix[y_size][x_size]{};
| Required Class Function: | operator[] |
|---|
dungeon_t dungeon_array_matrix[x_size*y_size]{};| View | Test Code |
|---|---|
| PC View | Wandbox |
| SP View | WandBox |
| Compiler | Pass_C++14 | Pass_C99 |
|---|---|---|
| MSVC | ||
| GCC | ||
| Clang | ||
| Zapcc | ||
| ICC |
#include <SimpleVoronoiIsland.hpp>| Default Value | Name | Image Color |
|---|---|---|
| 0 | Sea | Pale Brown |
| 1 | Land | Dark Olive |
| Capacity Requirement |
|---|
| 1 bit |

#include <FractalIsland.hpp>| Default Value | Name |
|---|---|
| 0-255 | Height |
| Capacity Requirement |
|---|
| 8 bit |

#include <FractalIsland.hpp>| Default Value | Name |
|---|---|
| 0-255 | Height |
| Capacity Requirement |
|---|
| 8 bit |

#include <FractalIsland.hpp>| Default Value | Name |
|---|---|
| 0-255 | Height |
| Capacity Requirement |
|---|
| 8 bit |

#include <FractalIsland.hpp>| Default Value | Name |
|---|---|
| 0-255 | Height |
| Capacity Requirement |
|---|
| 8 bit |

#include <RogueLike.hpp>| Default Value | Name | Image Color |
|---|---|---|
| 0 | Outside Wall | Blue |
| 1 | Inside Wall | White |
| 2 | Room | Green |
| 3 | Entrance | Black |
| 4 | Way | Yellow |
| Capacity Requirement |
|---|
| 3 bit |

#include <SimpleRogueLike.hpp>| Default Value | Name | Image Color |
|---|---|---|
| 0 | Wall | Black |
| 1 | Empty | White |
| Capacity Requirement |
|---|
| 1 bit |

#include <MazeDig.hpp>| Default Value | Name | Image Color |
|---|---|---|
| 0 | Wall | Blue |
| 1 | Empty | White |
| Capacity Requirement |
|---|
| 1 bit |

#include <RogueLike.hpp>| Default Value | Name | Image Color |
|---|---|---|
| 0 | Wall | Black |
| 1 | Room | Brown |
| 2 | Unknown | |
| 3 | Unknown | |
| 4 | Unknown |
| Capacity Requirement |
|---|
| 3 bit |

Underdevelopment...
#include <DungeonStandard.hpp>//class
dtl::DungeonInit<dungeon_t> dungeon_init(dungeon);
//function
dtl::dungeonInit(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 0 | (Variable Max) |
| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | Black |
| Capacity Requirement |
|---|
| 1 bit |

#include <DungeonStandard.hpp>//class
dtl::Border<dungeon_t> border(dungeon);
//function
dtl::createBorder(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 1 | (Variable Max) |
| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | White |
| 1 | Wall | Black |
| Capacity Requirement |
|---|
| 1 bit |

#include <DungeonStandard.hpp>//class
dtl::BorderOdd<dungeon_t> border_odd(dungeon);
//function
dtl::createBorderOdd(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 2 | (Variable Max) |
| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | White |
| 1 | Wall | Black |
| Capacity Requirement |
|---|
| 1 bit |

#include <DungeonStandard.hpp>//class
dtl::PointGrid<dungeon_t> point_grid(dungeon);
//function
dtl::createPointGrid(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 0 | (Variable Max) |
| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | White |
| 1 | Wall | Black |
| Capacity Requirement |
|---|
| 1 bit |

#include <DungeonStandard.hpp>//class
dtl::PointGridField<dungeon_t> point_grid_field(dungeon);
//function
dtl::createPointGridField(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 2 | (Variable Max) |
| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | White |
| 1 | Wall | Black |
| Capacity Requirement |
|---|
| 1 bit |

#include <DungeonStandard.hpp>//class
dtl::PointGridFieldPutBlock<dungeon_t> point_grid_field_put_block(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 3 | (Variable Max) |
| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | White |
| 1 | Wall | Black |
| 2 | Block | Red |
| Capacity Requirement |
|---|
| 2 bit |

#include <BoardGame.hpp>//class
dtl::Reversi<dungeon_t> reversi(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 2 | (Variable Max) |
| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | Green |
| 1 | White | White |
| 2 | Black | Black |
| Capacity Requirement |
|---|
| 2 bit |


#include <BoardGame.hpp>//class
dtl::Chess<dungeon_t> chess(dungeon);| Matrix Size Min | Matrix Size Max |
|---|---|
| 4 | (Variable Max) |
| Default Value | Name |
|---|---|
| 0 | Empty |
| 1 | White King |
| 2 | Black King |
| 3 | White Queen |
| 4 | Black Queen |
| 5 | White Bishop |
| 6 | Black Bishop |
| 7 | White Knight |
| 8 | Black Knight |
| 9 | White Rook |
| 10 | Black Rook |
| 11 | White Pawn |
| 12 | Black Pawn |
| Capacity Requirement |
|---|
| 4 bit |

#include <HorizontalScroll.hpp>| Default Value | Name | Image Color |
|---|---|---|
| 0 | Empty | Blue |
| 1 | Mountain | Green |
| Capacity Requirement |
|---|
| 1 bit |

#include <DungeonPaint.hpp>dtl::Pen<dungeon_t> pen(dungeon, x, y, paint_value);

#include <DungeonPaint.hpp>dtl::Bucket<dungeon_t> bucket(dungeon, x, y, paint_value);

| Name | Function | Version |
|---|---|---|
| .csv | fileRead_csv | v0.1.12~ |
| .dtlm | fileRead_dtlm | v0.1.12~ |
| Name | Function | Version |
|---|---|---|
| .csv | fileWrite_csv | v0.1.12~ |
| .dtlm | fileWrite_dtlm | v0.1.22~ |
| .md | fileWrite_md | v0.1.24~ |
| .txt | fileWrite_0_9 | v0.1.24~ |
| Name | Function | Version |
|---|---|---|
| .pbm | fileWrite_pbm | v0.1.22~ |
| .svg | fileWrite_svg | v0.1.22~ |
| .bmp | fileWrite_bmp | v0.1.23~ |
| Name | Function | Version |
|---|---|---|
| .obj | fileWriteTerrain_obj | v0.1.27~ |
| .obj | fileWriteBoard_obj | v0.1.28~ |
Priority > Simple ≈ Greed > Unselfishness
| Winner | Priority | Priority | Empty | Count |
|---|---|---|---|---|
| -0.0074 | 31.7925 | 31.9628 | 0.2447 | 60.1488 |
| Winner | Priority | Simple | Empty | Count |
|---|---|---|---|---|
| 0.7835 | 40.8016 | 22.229 | 0.9694 | 59.9489 |
| Winner | Priority | Greed | Empty | Count |
|---|---|---|---|---|
| 0.7053 | 39.5965 | 23.2626 | 1.1409 | 59.304 |
| Winner | Priority | Unselfishness | Empty | Count |
|---|---|---|---|---|
| 0.7996 | 42.5181 | 20.7563 | 0.7256 | 60.0602 |
| Winner | Simple | Priority | Empty | Count |
|---|---|---|---|---|
| -0.5458 | 22.6688 | 41.2262 | 0.105 | 60.913 |
| Winner | Simple | Simple | Empty | Count |
|---|---|---|---|---|
| -1 | 19 | 45 | 0 | 64 |
| Winner | Simple | Greed | Empty | Count |
|---|---|---|---|---|
| 0.09 | 32.0689 | 29.3282 | 2.6029 | 60.1052 |
| Winner | Simple | Unselfishness | Empty | Count |
|---|---|---|---|---|
| 0.4185 | 37.246 | 26.5962 | 0.1578 | 60.8609 |
| Winner | Greed | Priority | Empty | Count |
|---|---|---|---|---|
| -0.7032 | 23.237 | 39.6584 | 1.1046 | 59.3413 |
| Winner | Greed | Simple | Empty | Count |
|---|---|---|---|---|
| -0.1217 | 30.7936 | 32.1165 | 1.0899 | 61.4612 |
| Winner | Greed | Greed | Empty | Count |
|---|---|---|---|---|
| -0.0097 | 31.7787 | 32.1442 | 0.0771 | 60.3203 |
| Winner | Greed | Unselfishness | Empty | Count |
|---|---|---|---|---|
| 0.3536 | 35.073 | 24.5509 | 4.3761 | 57.4842 |
| Winner | Unselfishness | Priority | Empty | Count |
|---|---|---|---|---|
| -0.7935 | 20.9607 | 42.3865 | 0.6528 | 60.1339 |
| Winner | Unselfishness | Simple | Empty | Count |
|---|---|---|---|---|
| -0.4015 | 26.6318 | 37.2226 | 0.1456 | 60.9599 |
| Winner | Unselfishness | Greed | Empty | Count |
|---|---|---|---|---|
| -0.3935 | 23.6703 | 35.5719 | 4.7578 | 57.0582 |
| Winner | Unselfishness | Unselfishness | Empty | Count |
|---|---|---|---|---|
| -0.0295 | 31.7327 | 32.2625 | 0.0048 | 60.7481 |
These codes are licensed under CC0.
Created by Gaccho on December 15th, 2018.
| E-mail: | wanotaitei@gmail.com |
|---|---|
| Twitter: | @wanotaitei |
| As Project | |
| Made by Gaccho. |
Japan Terrain Generation Research Institute
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)
