Description
Provides access to data and methods associated with an A* grid cell.
Properties
col |
Gets the cell's column address, or its numbering in the x direction. |
row |
Gets the cell's row address, or its numbering in the y direction. |
Methods
adjacentCell |
Gets the cell's adjacent cell, in the given direction. |
canGo |
Returns true if the travel grid allows a traveler to travel from this cell to an
adjacent cell in the defined direction. |
getAllocation |
Gets the AStar.Allocation, if any, that is currently active for the
cell or is scheduled to be active at a given time. |
Constructor
AStar.Cell |
Constructs an AStar.Cell based on the grid, row, and column address. |
Operators
! |
Returns true if the cell is not a valid address in the A* grid. |
!= |
Returns true if the cell is not the same address as a compared cell. |
== |
Returns true if the cell is the same address as a compared cell. |
bool |
Returns true if the cell is a valid address in the A* grid. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
int col
Description
Gets the cell's column address, or its numbering in the x direction.
Increasing column numbers are associated with increasing x locations.
Do no remove, this fixes the anchor on doc.flexsim.com
int row
Description
Gets the cell's row address, or its numbering in the y direction.
Increasing row numbers are associated with increasing y locations.
Do no remove, this fixes the anchor on doc.flexsim.com
Parameters
direction |
The desired travel direction. This should be an enumeration of
AStar.Direction |
Description
Gets the cell's adjacent cell, in the given direction.
Do no remove, this fixes the anchor on doc.flexsim.com
Parameters
direction |
The desired travel direction. This should be an enumeration of
AStar.Direction |
Description
Returns true if the travel grid allows a traveler to travel from this cell to an
adjacent cell in the defined direction.
Do no remove, this fixes the anchor on doc.flexsim.com
Parameters
time |
The target simulation time. |
Description
Gets the AStar.Allocation, if any, that is currently active for the
cell or is scheduled to be active at a given time.
Do no remove, this fixes the anchor on doc.flexsim.com
AStar.Cell(
int grid
,
int row
,
int column
)
|
Parameters
grid |
Reserved for future use. Should be 1. |
row |
The row address. |
column |
The column address. |
Description
Constructs an AStar.Cell based on the grid, row, and column address.
Do no remove, this fixes the anchor on doc.flexsim.com
Description
Returns true if the cell is not a valid address in the A* grid.
Returns true if the cell address is outside the bounds of the A* grid, otherwise false.
Do no remove, this fixes the anchor on doc.flexsim.com
Parameters
other |
The cell to compare this cell with. |
Description
Returns true if the cell is not the same address as a compared cell.
Do no remove, this fixes the anchor on doc.flexsim.com
Parameters
other |
The cell to compare this cell with. |
Description
Returns true if the cell is the same address as a compared cell.
Do no remove, this fixes the anchor on doc.flexsim.com
Description
Returns true if the cell is a valid address in the A* grid.
Returns false if the cell address is outside the bounds of the A* grid.