Navigation
API > API/Runtime > API/Runtime/AIModule
Inheritance Hierarchy
- TSimpleCellGrid
- FNavLocalGridData
- FCombinedNavGridData
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Public/SimpleCellGrid.h |
| Include | #include "SimpleCellGrid.h" |
Syntax
template<typename CellType, int InvalidCellValue>
struct TSimpleCellGrid
Remarks
No virtuals on purpose
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | BoundsSize | ||
| TArray< FCellType > | Cells | ||
| float | GridCellSize | ||
| FGridSize2D | GridSize | ||
| FVector | Origin | ||
| FBox | WorldBounds |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | CleanUp () |
||
| void | FreeMemory () |
||
| uint32 | |||
| const FCellType & | GetCellAtIndexUnsafe
(
int32 CellIndex |
||
| FCellType & | GetCellAtIndexUnsafe
(
int32 CellIndex |
||
| const FCellType & | GetCellAtWorldLocation
(
const FVector& WorldLocation |
||
| const FCellType & | GetCellAtWorldLocationUnsafe
(
const FVector& WorldLocation |
||
| FIntVector | GetCellCoords
(
int32 CellIndex |
Convert cell index to (X,Y) coords on grid | |
| FIntVector | GetCellCoords
(
const FVector& WorldLocation |
Convert world location to (X,Y) coords on grid, result is clamped to grid | |
| FIntVector | GetCellCoordsUnsafe
(
const FVector& WorldLocation |
Convert world location to (X,Y) coords on grid, result can be outside grid | |
| int32 | GetCellCoordX
(
int32 CellIndex |
Convert cell index to coord X on grid, result can be invalid | |
| int32 | GetCellCoordY
(
int32 CellIndex |
Convert cell index to coord Y on grid, result can be invalid | |
| int32 | GetCellIndex
(
int32 LocationX, |
Convert (X,Y) coords on grid to cell index, returns -1 for position outside grid | |
| int32 | GetCellIndex
(
const FVector& WorldLocation |
Convert world location to cell index, returns -1 for position outside grid | |
| int32 | GetCellIndexUnsafe
(
int32 LocationX, |
Convert (X,Y) coords on grid to cell index, result can be invalid | |
| int32 | GetCellIndexUnsafe
(
const FIntVector& CellCoords |
Convert (X,Y) coords on grid to cell index, result can be invalid | |
| int32 | GetCellIndexUnsafe
(
const FVector& WorldLocation |
Convert world location to cell index, result can be invalid | |
| int32 | |||
| FBox | GetWorldCellBox
(
int32 LocationX, |
||
| FBox | GetWorldCellBox
(
int32 CellIndex |
||
| FVector | GetWorldCellCenter
(
int32 LocationX, |
||
| FVector | GetWorldCellCenter
(
int32 CellIndex |
||
| bool | Init
(
float InCellSize, |
||
| bool | IsValid () |
||
| bool | IsValidCoord
(
const FIntVector& CellCoords |
||
| bool | IsValidCoord
(
int32 LocationX, |
||
| bool | IsValidIndex
(
const int32 CellIndex |
||
| int32 | Num () |
||
| void | |||
| void | |||
| void | Zero () |
Operators
| Type | Name | Description | |
|---|---|---|---|
| const FCellType & | operator[]
(
int32 CellIndex |
||
| FCellType & | operator[]
(
int32 CellIndex |
Typedefs
| Name | Description |
|---|---|
| FCellType |