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

Cells handling related classes (orthogonal, hexagonal, staggered) More...

Classes

class  gf::Cells
 The properties of cells. More...
 
class  gf::OrthogonalCells
 Orthogonal cells. More...
 
class  gf::StaggeredCells
 Staggered cells. More...
 
class  gf::HexagonalCells
 Hexagonal cells. More...
 

Enumerations

enum class  gf::CellNeighborQuery {
  gf::CellNeighborQuery::Valid = 0x01 ,
  gf::CellNeighborQuery::Diagonal = 0x02
}
 Specification of the query of neighborhood. More...
 
enum class  gf::CellIndex {
  gf::CellIndex::Odd ,
  gf::CellIndex::Even
}
 Cell index for staggered or hexagonal maps. More...
 
enum class  gf::CellAxis {
  gf::CellAxis::X ,
  gf::CellAxis::Y
}
 Cell axis for staggered or hexagonal maps. More...
 
enum class  gf::CellOrientation : uint8_t {
  gf::CellOrientation::Unknown = 0x00 ,
  gf::CellOrientation::Orthogonal = 0x01 ,
  gf::CellOrientation::Isometric = 0x02 ,
  gf::CellOrientation::Staggered = 0x03 ,
  gf::CellOrientation::Hexagonal = 0x04
}
 The orientation of the cells. More...
 
enum class  gf::Flip : uint8_t {
  gf::Flip::Horizontally = 0x01 ,
  gf::Flip::Vertically = 0x02 ,
  gf::Flip::Diagonally = 0x04 ,
  gf::Flip::Rotation60 = 0x04 ,
  gf::Flip::Rotation120 = 0x08
}
 A flag to indicate how to flip a tile. More...
 

Detailed Description

Cells handling related classes (orthogonal, hexagonal, staggered)

Enumeration Type Documentation

◆ CellAxis

enum class gf::CellAxis
strong

Cell axis for staggered or hexagonal maps.

See also
gf::CellIndex
Enumerator

The x cell axis.

The y cell axis.

◆ CellIndex

enum class gf::CellIndex
strong

Cell index for staggered or hexagonal maps.

See also
gf::CellAxis
Enumerator
Odd 

A odd cell index.

Even 

An even cell index.

◆ CellNeighborQuery

enum class gf::CellNeighborQuery
strong

Specification of the query of neighborhood.

See also
gf::Cells
Enumerator
Valid 

The neighbors must be valid cells.

Diagonal 

The neighbors may be in diagonal.

◆ CellOrientation

enum class gf::CellOrientation : uint8_t
strong

The orientation of the cells.

See also
gf::TileLayer
Enumerator
Unknown 

An unknown orientation.

Orthogonal 

An orthogonal orientation.

Isometric 

An isometric orientation.

Staggered 

A staggered orientation.

Hexagonal 

A hexagonal orientation.

◆ Flip

enum class gf::Flip : uint8_t
strong

A flag to indicate how to flip a tile.

See also
gf::TileLayer
Enumerator
Horizontally 

The tile is flipped horizontally.

Vertically 

The tile is flipped vertically.

Diagonally 

The tile is flipped anti-diagonally.

Rotation60 

The tile is rotated 60° clockwise.

Rotation120 

The tile is rotated 120° clockwise.