![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
Roguelike toolkit. More...
Classes | |
class | gf::SquareMap |
A square map. More... | |
class | gf::RandomBinaryTree |
A random binary space partionning tree. More... | |
class | gf::RandomBinaryTree::Node |
A node of the random binary space partionning tree. More... | |
Enumerations | |
enum class | gf::CellProperty : uint8_t { gf::CellProperty::Transparent = 0x01 , gf::CellProperty::Walkable = 0x02 , gf::CellProperty::Visible = 0x10 , gf::CellProperty::Explored = 0x20 } |
A property of a cell. More... | |
enum class | gf::FieldOfVision { gf::FieldOfVision::Basic } |
Algorithm for computing a field of vision. More... | |
enum class | gf::FieldOfVisionLimit { gf::FieldOfVisionLimit::Included , gf::FieldOfVisionLimit::Excluded } |
Constant to indicate if the limit is part of the field of vision. More... | |
enum class | gf::Route { gf::Route::AStar , gf::Route::Dijkstra } |
Algorithm for computing a route. More... | |
Variables | |
constexpr Flags< CellProperty > | gf::EmptyCell = combineFlags(CellProperty::Transparent, CellProperty::Walkable) |
An empty cell. More... | |
Roguelike toolkit.
|
strong |
A property of a cell.
Enumerator | |
---|---|
Transparent | The cell is transparent. |
Walkable | The cell is walkable. |
Visible | The cell is visible (computed by FoV) |
Explored | The cell has been explored (computed by FoV) |
|
strong |
Algorithm for computing a field of vision.
Enumerator | |
---|---|
Basic | A basic algorithm based on ray casting. |
|
strong |
Constant to indicate if the limit is part of the field of vision.
The limit is generally a wall that is next to a visible ground cell.
Enumerator | |
---|---|
Included | The limits are included in the field of vision. |
Excluded | The limits are not included in the field of vision. |
|
strong |
Algorithm for computing a route.
Enumerator | |
---|---|
AStar | The A* algorithm. |
Dijkstra | The Dijkstra algorithm. |
|
constexpr |