Horizon Official Technical Documentation
CellCheckPredicate Class Reference

#include <GridNotifierPredicates.hpp>

+ Collaboration diagram for CellCheckPredicate:

Public Member Functions

 CellCheckPredicate (MapCoords cell)
 
bool operator() (MapCoords cell)
 

Private Attributes

MapCoords _cell { 0, 0 }
 

Constructor & Destructor Documentation

◆ CellCheckPredicate()

CellCheckPredicate::CellCheckPredicate ( MapCoords  cell)
inline
84 : _cell(cell){ }
Cell cell[MAP_WIDTH][MAP_HEIGHT]
Definition: AStarTest.cpp:52
MapCoords _cell
Definition: GridNotifierPredicates.hpp:92

Member Function Documentation

◆ operator()()

bool CellCheckPredicate::operator() ( MapCoords  cell)
inline
87 {
88 return cell == _cell;
89 }

References _cell, and cell.

Member Data Documentation

◆ _cell

MapCoords CellCheckPredicate::_cell { 0, 0 }
private

Referenced by operator()().


The documentation for this class was generated from the following file: