Skip to content
Samuel Arminana edited this page Mar 20, 2017 · 1 revision

Cell

The Cell class is located in the GridManager.cs file.

This class stores information about a cell.

int x is the x position of this cell.

int z is the z position of this cell.

int yPos is the y position of the cell.

bool isAvailable is whether this cell has an obstacle inside of it.

parentCell, gCost, hCost, and fCost all are used for the A* algorithms. fCost will return gCost + hCost.

Constructers

Cell(int x, int z, float yPos)

Cell(int x, int z, float yPos, Cell parentCell)

Get Position

Vector3 GetPosition()

Returns the x, yPos, and z integers respectfully.

Clone this wiki locally