Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Resource

Hierarchy

  • Resource

Index

Constructors

constructor

  • Parameters

    • numeric: number
    • Default value maxNumeric: number = 0
    • Optional types: ResourceTypeGroup

    Returns Resource

Properties

Private maxNumeric

maxNumeric: number

Private numeric

numeric: number

Private types

Methods

add

  • Parameters

    Returns void

asCost

  • asCost(): string
  • Returns string

asListDesc

  • asListDesc(): string
  • Returns string

asPool

  • asPool(): string
  • Returns string

asSentence

  • asSentence(): string
  • Returns string

difference

  • Parameters

    Returns object[]

getColor

  • getColor(): number
  • Returns number

getColors

getMaxNumeric

  • getMaxNumeric(): number
  • Returns number

getNumeric

  • getNumeric(): number
  • Returns number

getOfType

  • getOfType(string: string): number
  • Parameters

    • string: string

    Returns number

getTyped

  • getTyped(): string[]
  • Returns string[]

isInColors

  • isInColors(colorsToCheck: Set<string>): boolean
  • Parameters

    • colorsToCheck: Set<string>

    Returns boolean

meetsReq

  • Parameters

    Returns boolean

renew

  • renew(): void
  • Returns void

subtract

  • Parameters

    Returns void

Static loadResource

Generated using TypeDoc