Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Defense

Hierarchy

Index

Constructors

constructor

  • new Defense(base: number): Defense
  • Parameters

    • base: number

    Returns Defense

Properties

base

base: number

resist

resist: Attributes

vulnerable

vulnerable: Attributes

Methods

copy

  • Returns Defense

equals

  • equals(defense: Defense): boolean
  • Parameters

    Returns boolean

setResistance

  • setResistance(damageTypes: DamageType, amount: number): this
  • Parameters

    Returns this

setVulnerability

  • setVulnerability(damageTypes: DamageType, amount: number): this
  • Parameters

    Returns this

Generated using TypeDoc