Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
Classes | Enumerations | Variables
Roguelike Toolkit

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< CellPropertygf::EmptyCell = combineFlags(CellProperty::Transparent, CellProperty::Walkable)
 An empty cell. More...
 

Detailed Description

Roguelike toolkit.

Enumeration Type Documentation

◆ CellProperty

enum class gf::CellProperty : uint8_t
strong

A property of a cell.

See also
gf::SquareMap
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)

◆ FieldOfVision

enum class gf::FieldOfVision
strong

Algorithm for computing a field of vision.

See also
gf::SquareMap
Enumerator
Basic 

A basic algorithm based on ray casting.

◆ FieldOfVisionLimit

enum class gf::FieldOfVisionLimit
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.

See also
gf::SquareMap
Enumerator
Included 

The limits are included in the field of vision.

Excluded 

The limits are not included in the field of vision.

◆ Route

enum class gf::Route
strong

Algorithm for computing a route.

See also
gf::SquareMap
Enumerator
AStar 

The A* algorithm.

Dijkstra 

The Dijkstra algorithm.

Variable Documentation

◆ EmptyCell

constexpr Flags<CellProperty> gf::EmptyCell = combineFlags(CellProperty::Transparent, CellProperty::Walkable)
constexpr

An empty cell.

An empty cell is transparent and walkable.

See also
gf::CellProperty, gf::SquareMap