CellGrid Type

Represents a grid of cells with specified dimensions.

Record fields

Record Field Description

Data

Full Usage: Data

Field type: Cell array
Field type: Cell array

Length

Full Usage: Length

Field type: int
Field type: int

Width

Full Usage: Width

Field type: int
Field type: int

Constructors

Constructor Description

CellGrid(data, length, width)

Full Usage: CellGrid(data, length, width)

Parameters:
    data : Cell array
    length : int
    width : int

Returns: CellGrid
data : Cell array
length : int
width : int
Returns: CellGrid

Instance members

Instance member Description

this.CleanOccupiedForChildrenCells

Full Usage: this.CleanOccupiedForChildrenCells

Cleans cells marked as OccupiedForChildren, resetting them to the Occupied state.

this.IsAgainstTheBottomWall

Full Usage: this.IsAgainstTheBottomWall

Parameters:
    i : int
    j : int

Returns: bool

Checks if the cell at the specified coordinates (i, j) is in the AgainstTheBottomWall state.

i : int
j : int
Returns: bool

this.IsAgainstTheLeftWall

Full Usage: this.IsAgainstTheLeftWall

Parameters:
    i : int
    j : int

Returns: bool

Checks if the cell at the specified coordinates (i, j) is in the AgainstTheLeftWall state.

i : int
j : int
Returns: bool

this.IsAgainstTheRightWall

Full Usage: this.IsAgainstTheRightWall

Parameters:
    i : int
    j : int

Returns: bool

Checks if the cell at the specified coordinates (i, j) is in the AgainstTheRightWall state.

i : int
j : int
Returns: bool

this.IsAgainstTheTopWall

Full Usage: this.IsAgainstTheTopWall

Parameters:
    i : int
    j : int

Returns: bool

Checks if the cell at the specified coordinates (i, j) is in the AgainstTheTopWall state.

i : int
j : int
Returns: bool

this.IsNonOccupied

Full Usage: this.IsNonOccupied

Parameters:
    i : int
    j : int

Returns: bool

Checks if the cell at the specified coordinates (i, j) is in the NonOccupied state.

i : int
j : int
Returns: bool

this.IsOccupied

Full Usage: this.IsOccupied

Parameters:
    i : int
    j : int

Returns: bool

Checks if the cell at the specified coordinates (i, j) is in the Occupied state.

i : int
j : int
Returns: bool

this.IsOccupiedForChildren

Full Usage: this.IsOccupiedForChildren

Parameters:
    i : int
    j : int

Returns: bool

Checks if the cell at the specified coordinates (i, j) is in the OccupiedForChildren state.

i : int
j : int
Returns: bool

this[i, j]

Full Usage: this[i, j]

Parameters:
    i : int
    j : int

Returns: Cell

Gets the cell from the cell grid at the specified coordinates (i, j).

i : int
j : int
Returns: Cell

this.MakeOccupied

Full Usage: this.MakeOccupied

Parameters:
    i : int
    j : int

Marks the cell at the specified coordinates (i, j) as Occupied.

i : int
j : int

this.MakeOccupiedForChildren

Full Usage: this.MakeOccupiedForChildren

Parameters:
    i : int
    j : int

Marks the cell at the specified coordinates (i, j) as OccupiedForChildren.

i : int
j : int