Skip to content

Commit

Permalink
chore: add some fixme statements
Browse files Browse the repository at this point in the history
  • Loading branch information
NuclearRedeye committed Nov 4, 2024
1 parent b58ddde commit dbc718f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ts/utils/cell-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function cellHasProperty(cell: Cell, property: CellProperties): number {
// Utility function to determine if the specified cell is solid.
export function isSolid(cell: Cell): number {
let retVal = cellHasProperty(cell, CellProperties.SOLID);

// FIXME: This should be moved elsewhere as in specific walls of a 'Door' Cell could still be solid
if (isDoor(cell) && (cell as DoorCell).status === DoorState.OPEN) {
retVal = 0;
}
Expand All @@ -37,6 +39,8 @@ export function isSolid(cell: Cell): number {
// Utility function to determine if the specified cell is blocked.
export function isBlocked(cell: Cell): number {
let retVal = cellHasProperty(cell, CellProperties.BLOCKED);

// FIXME: This should be moved elsewhere as in specific walls of a 'Door' Cell could still be solid
if (isDoor(cell) && (cell as DoorCell).status === DoorState.OPEN) {
retVal = 0;
}
Expand Down

0 comments on commit dbc718f

Please sign in to comment.