Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IFieldOfView

Hierarchy

  • IFieldOfView

Implemented by

Index

Properties

blurEnabled

blurEnabled: boolean

computeOffset

computeOffset: Vec2

disabled

disabled: boolean

hBlurProgram

hBlurProgram: CompiledProgram

maxRadius

maxRadius: number

radius

radius: number

texLight

texLight: WebGLTexture

texLightOld

texLightOld: WebGLTexture

vBlurProgram

vBlurProgram: CompiledProgram

Methods

canAnyPlayerSeeTile

  • canAnyPlayerSeeTile(tileX: number, tileY: number, tileZ: number): boolean
  • Parameters

    • tileX: number
    • tileY: number
    • tileZ: number

    Returns boolean

canPlayerSeeTile

  • canPlayerSeeTile(player: IPlayer, tileX: number, tileY: number, tileZ: number): boolean
  • Parameters

    • player: IPlayer
    • tileX: number
    • tileY: number
    • tileZ: number

    Returns boolean

compileShaders

  • compileShaders(gl: WebGLRenderingContext): void
  • Parameters

    • gl: WebGLRenderingContext

    Returns void

compute

  • compute(lightBlocking?: boolean): void
  • Parameters

    • Optional lightBlocking: boolean

    Returns void

createDebugRenderer

getBounds

  • Parameters

    Returns Bound3

getPlayersThatSeeTile

  • getPlayersThatSeeTile(tileX: number, tileY: number, tileZ: number): IPlayer[]
  • Parameters

    • tileX: number
    • tileY: number
    • tileZ: number

    Returns IPlayer[]

getRadiusModifier

  • getRadiusModifier(tileX: number, tileY: number): number
  • Parameters

    • tileX: number
    • tileY: number

    Returns number

getSubdivisions

  • getSubdivisions(): number
  • Returns number

getTextureSize

  • getTextureSize(): number
  • Returns number

tickSeed

  • tickSeed(): void
  • Returns void

Generated using TypeDoc