HOG2
|
#include <Map3DGrid.h>
Public Member Functions | |
RegionData () | |
bool | CanAddPoint (int x, int y, int z) |
bool | AddPoint (int x, int y, int z) |
void | AddEdge (EdgeData &e) |
void | RemoveEdge (EdgeData &e) |
bool | LowerBase () |
void | RedoCenterLocation () |
Public Attributes | |
uint8_t | centerLocation |
uint8_t | baseHeight |
uint8_t | pointCount |
uint8_t | blockedPointCount |
std::vector< EdgeData > | edges |
GridData | grid |
Definition at line 129 of file Map3DGrid.h.
|
inline |
Definition at line 131 of file Map3DGrid.h.
void RegionData::AddEdge | ( | EdgeData & | e | ) |
Definition at line 378 of file Map3DGrid.cpp.
References edges, EdgeData::region, EdgeData::sector, and EdgeData::support.
bool RegionData::AddPoint | ( | int | x, |
int | y, | ||
int | z | ||
) |
Definition at line 332 of file Map3DGrid.cpp.
References GridData::AddPoint(), baseHeight, centerLocation, grid, gSectorSize, pointCount, and RedoCenterLocation().
bool RegionData::CanAddPoint | ( | int | x, |
int | y, | ||
int | z | ||
) |
Definition at line 301 of file Map3DGrid.cpp.
References baseHeight, GridData::GetHeightOffset(), grid, GridData::IsPointPassable(), LowerBase(), and pointCount.
bool RegionData::LowerBase | ( | ) |
Definition at line 277 of file Map3DGrid.cpp.
References baseHeight, GridData::GetHeightOffset(), grid, gSectorSize, kUnpassableHeight, and GridData::SetHeightOffset().
Referenced by CanAddPoint().
void RegionData::RedoCenterLocation | ( | ) |
Definition at line 360 of file Map3DGrid.cpp.
References centerLocation, GridData::GetHeightOffset(), grid, gSectorSize, indexFromXY(), kUnpassableHeight, and xyFromIndex().
Referenced by AddPoint().
void RegionData::RemoveEdge | ( | EdgeData & | e | ) |
Definition at line 391 of file Map3DGrid.cpp.
References edges, EdgeData::region, EdgeData::sector, and EdgeData::support.
uint8_t RegionData::baseHeight |
Definition at line 150 of file Map3DGrid.h.
Referenced by AddPoint(), CanAddPoint(), and LowerBase().
uint8_t RegionData::blockedPointCount |
Definition at line 152 of file Map3DGrid.h.
uint8_t RegionData::centerLocation |
Definition at line 149 of file Map3DGrid.h.
Referenced by AddPoint(), and RedoCenterLocation().
std::vector<EdgeData> RegionData::edges |
Definition at line 153 of file Map3DGrid.h.
Referenced by AddEdge(), and RemoveEdge().
GridData RegionData::grid |
Definition at line 154 of file Map3DGrid.h.
Referenced by AddPoint(), CanAddPoint(), LowerBase(), and RedoCenterLocation().
uint8_t RegionData::pointCount |
Definition at line 151 of file Map3DGrid.h.
Referenced by AddPoint(), and CanAddPoint().