Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new Lordship(text: string, valuePerUnit: number, addEffect: function, removeEffect: function, filter: function): Lordship
  • Parameters

    • text: string
    • valuePerUnit: number
    • addEffect: function
    • removeEffect: function
        • Parameters

          Returns void

    • filter: function
        • Parameters

          Returns boolean

    Returns Lordship

Properties

Private addEffect

addEffect: function

Type declaration

Private filter

filter: function

Type declaration

    • Parameters

      Returns boolean

Private removeEffect

removeEffect: function

Type declaration

    • Parameters

      Returns void

Private text

text: string

Private valuePerUnit

valuePerUnit: number

Static Protected ParameterTypes

ParameterTypes: object[] = []

Static Protected id

id: string = "Lordship"

Static Protected validCardTypes

validCardTypes: Set<CardType> = Permanent.cardTypes

Methods

Private applyToUnit

  • applyToUnit(unit: Unit, game: Game): void
  • Parameters

    Returns void

attach

  • attach(parent: Card): void
  • Parameters

    Returns void

clone

enter

  • Parameters

    Returns void

evaluate

  • evaluate(card: Card, game: Game): number

evaluateTarget

getId

  • getId(): string
  • Returns string

Private getTargets

  • Parameters

    Returns Unit[]

getText

  • getText(card: Card): string
  • Parameters

    Returns string

getTriggeringUnit

  • getTriggeringUnit(): undefined | Unit

remove

  • Parameters

    Returns void

Private removeFromUnit

  • removeFromUnit(unit: Unit, game: Game): void
  • Parameters

    Returns void

setTriggeringUnit

  • setTriggeringUnit(unit: Unit): void

stack

  • stack(): void
  • Returns void

Static canAttach

  • canAttach(card: Card): boolean

Static getId

  • getId(): string
  • Returns string

Static getMultiplier

Static getParameterTypes

  • getParameterTypes(): object[]

Static getValidCardTypes

Static isValidParent

  • isValidParent(cardType: CardType): boolean

Static sumValues

Generated using TypeDoc