Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
pathfinding.hpp File Reference

Grid pathfinding: A* over cells with walkable flags and costs, the path given as cell centers. More...

#include <aegis2d/core/math.hpp>
#include <aegis2d/ecs/export.hpp>
#include <cstddef>
#include <cstdint>
#include <optional>
#include <span>
#include <vector>

Go to the source code of this file.

Classes

struct  aegis2d::ecs::Cell
 Column and row of a grid cell, from the top-left one. More...
 
class  aegis2d::ecs::NavGrid
 Grid of cells that can be walked or not, each with a cost, and the shortest path between two of them. More...
 
struct  aegis2d::ecs::NavPath
 Path between two cells, found again only when the grid has changed. More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::ecs
 Entity-Component-System used by client and server.
 

Enumerations

enum class  aegis2d::ecs::Painted : std::uint8_t { aegis2d::ecs::Walkable , aegis2d::ecs::Blocked }
 What the painted cells of a tile layer are, for NavGrid::mark_tiles(). More...
 

Detailed Description

Grid pathfinding: A* over cells with walkable flags and costs, the path given as cell centers.