26 #include "Portability.h" 30 #ifndef DOXYGEN_SHOULD_SKIP_THIS 176 void setTransparent(
Vector2i pos,
bool transparent =
true);
185 bool isTransparent(
Vector2i pos)
const;
195 void setWalkable(
Vector2i pos,
bool walkable =
true);
202 bool isWalkable(
Vector2i pos)
const;
229 void clearFieldOfVision();
238 void clearExplored();
287 bool isInFieldOfVision(
Vector2i pos)
const;
297 bool isExplored(
Vector2i pos)
const;
331 #ifndef DOXYGEN_SHOULD_SKIP_THIS 335 struct EnableBitmaskOperators<CellProperty> {
336 static constexpr
bool value =
true;
A two-dimensional array.
Definition: Array2D.h:306
Route
Algorithm for computing a route.
Definition: Map.h:94
Bitfield relying on an enumeration.
Definition: Flags.h:46
The limits are included in the field of vision.
CellProperty
A property of a cell.
Definition: Map.h:40
The cell is visible (computed by FoV)
A basic algorithm based on ray casting.
constexpr float Sqrt2
The constant.
Definition: Math.h:66
FieldOfVisionLimit
Constant to indicate if the limit is part of the field of vision.
Definition: Map.h:83
The namespace for gf classes.
Definition: Action.h:35
FieldOfVision
Algorithm for computing a field of vision.
Definition: Map.h:71
A square map.
Definition: Map.h:116
A 2D range.
Definition: Range.h:277
The cell has been explored (computed by FoV)
The limits are not included in the field of vision.
constexpr CellFlags EmptyCell
An empty cell.
Definition: Map.h:63