HyperRogue  11.3d
game/visualization engine based on non-Euclidean geometry
Public Member Functions | Public Attributes | List of all members
hr::celllister Struct Reference
Inheritance diagram for hr::celllister:
hr::manual_celllister

Public Member Functions

void add_at (cell *c, int d)
 
 celllister (cell *orig, int maxdist, int maxcount, cell *breakon)
 
int getdist (cell *c)
 
- Public Member Functions inherited from hr::manual_celllister
bool listed (cell *c)
 
bool add (cell *c)
 

Public Attributes

vector< int > dists
 
- Public Attributes inherited from hr::manual_celllister
vector< cell * > lst
 
vector< int > tmps
 

Detailed Description

automatically generate a list of nearby cells

Constructor & Destructor Documentation

◆ celllister()

hr::celllister::celllister ( cell orig,
int  maxdist,
int  maxcount,
cell breakon 
)
inline

automatically generate a list of nearby cells

Parameters
origwhere to start
maxdistmaximum distance to cover
maxcountmaximum number of cells to cover
breakonwe are actually looking for this cell, so stop when reaching it

Member Function Documentation

◆ getdist()

int hr::celllister::getdist ( cell c)
inline

for a given cell c on the list, return its distance from orig


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