![]() |
Gamedev Framework (gf) 1.2.0
A C++17 framework for 2D games
|
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... | |
Cells handling related classes (orthogonal, hexagonal, staggered)
|
strong |
Cell axis for staggered or hexagonal maps.
Enumerator | |
---|---|
X | The x cell axis. |
Y | The y cell axis. |
|
strong |
Cell index for staggered or hexagonal maps.
Enumerator | |
---|---|
Odd | A odd cell index. |
Even | An even cell index. |
|
strong |
Specification of the query of neighborhood.
Enumerator | |
---|---|
Valid | The neighbors must be valid cells. |
Diagonal | The neighbors may be in diagonal. |
|
strong |
The orientation of the cells.
Enumerator | |
---|---|
Unknown | An unknown orientation. |
Orthogonal | An orthogonal orientation. |
Isometric | An isometric orientation. |
Staggered | A staggered orientation. |
Hexagonal | A hexagonal orientation. |
|
strong |
A flag to indicate how to flip a tile.