• Convert RoomTerrain to CostMatrix

    Parameters

    • roomName: RoomName

      target room name

    • plain: number = 1

      value for TERRAIN_MASK_PLAIN

    • swamp: number = 5

      value for TERRAIN_MASK_SWAMP

    • wall: number = MATRIX_MAX

      value for TERRAIN_MASK_WALL

    • Optional exclude: CostMatrix

      optional matrix with non-zero values considered as wall

    Returns CostMatrix

    a matrix of the terrain for the given room

Generated using TypeDoc