From dbc718f39836b36c7789ff77ed24980ecd1fde50 Mon Sep 17 00:00:00 2001 From: NuclearRedeye Date: Mon, 4 Nov 2024 15:20:03 +0000 Subject: [PATCH] chore: add some fixme statements --- src/ts/utils/cell-utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ts/utils/cell-utils.ts b/src/ts/utils/cell-utils.ts index 545d496..48d7fe6 100644 --- a/src/ts/utils/cell-utils.ts +++ b/src/ts/utils/cell-utils.ts @@ -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; } @@ -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; }