Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TargetModeAllOnSameTile

Target mode which selects all entities which are on the same tile as the source entity. Used for spikes.

Hierarchy

Index

Constructors

constructor

Methods

deserialize

  • deserialize(data: any): any

drawVisualizer

  • drawVisualizer(entity: any, parameters: any, time: any): void
  • see

    BaseTargetMode.drawVisualizer

    Parameters

    • entity: any
    • parameters: any
    • time: any

    Returns void

getDebugString

  • getDebugString(): string

getTileRadiusForDefenseView

  • getTileRadiusForDefenseView(): number

isTargetAvailable

  • isTargetAvailable(sourceFaction: any, targetEntity: any, root: any): boolean
  • Helper method to check if an entity is available as a target from the given source faction

    Parameters

    • sourceFaction: any
    • targetEntity: any
    • root: any

    Returns boolean

selectTargets

  • selectTargets(sourceEntity: any, root: any, excludeList?: any, sourceFactionOverride?: any): any[]
  • see

    BaseTargetMode.selectTargets

    Parameters

    • sourceEntity: any
    • root: any
    • Default value excludeList: any = null
    • Default value sourceFactionOverride: any = null

    Returns any[]

serialize

  • serialize(): object

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string