Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescriptiveLogger

Adds descriptions to the intentions and then logs them to a specified Log

Hierarchy

  • DescriptiveLogger

Implements

Index

Constructors

constructor

Methods

CancelCondition

  • CancelCondition(reason: string): void
  • Parameters

    • reason: string

    Returns void

ChangingStage

  • ChangingStage(stage: string, type: string, difference: number, from: number, to: number): void
  • Parameters

    • stage: string
    • type: string
    • difference: number
    • from: number
    • to: number

    Returns void

DamageType

  • DamageType(type: "critical" | "noncritical"): void

Death

  • Death(party: string): void

DieRollValue

  • DieRollValue(value: number): void

EffectSuccess

  • EffectSuccess(effect: string, status: string): void
  • Parameters

    • effect: string
    • status: string

    Returns void

EndingTurn

  • EndingTurn(message: string): void
  • Parameters

    • message: string

    Returns void

ForceResettingStagesAndStageBoostCounter

  • ForceResettingStagesAndStageBoostCounter(): void

GameMode

  • GameMode(mode: string): void

GettingCondition

  • GettingCondition(condition: string, actor?: Player): void

Health

  • Health(current: number, max: number): void

IncrementingStageBoostCounter

  • IncrementingStageBoostCounter(valueAfter: number): void

LogSession

  • LogSession(action: string): void
  • Parameters

    • action: string

    Returns void

MoveKilledOpponent

  • MoveKilledOpponent(): void

PlayingFirst

  • PlayingFirst(team: string): void

PlayingMove

  • PlayingMove(index: number, move: Move): void

PlayingTurn

  • PlayingTurn(options: { opponent: Player; takeSuperPotion: boolean }): void
  • Parameters

    • options: { opponent: Player; takeSuperPotion: boolean }
      • opponent: Player
      • takeSuperPotion: boolean

    Returns void

PlayingTurnAgainst

  • PlayingTurnAgainst(player: Player): void

QuantityRemaining

  • QuantityRemaining(type: string, quantity: number): void
  • Parameters

    • type: string
    • quantity: number

    Returns void

ReceivingMove

  • ReceivingMove(move: MoveLike, opponent: Player): void

RemainingPlayers

  • RemainingPlayers(players: Player[]): void

RemovingCondition

  • RemovingCondition(condition: string): void
  • Parameters

    • condition: string

    Returns void

Resetting

  • Resetting(): void

RoundWinner

  • RoundWinner(winner: string, AFirst: boolean): void
  • Parameters

    • winner: string
    • AFirst: boolean

    Returns void

Speeds

  • Speeds(speeds: { a: number; b: number }): void
  • Parameters

    • speeds: { a: number; b: number }
      • a: number
      • b: number

    Returns void

State

  • State(state: string, message?: string): void
  • Parameters

    • state: string
    • message: string = ""

    Returns void

SwappingPlayer

  • SwappingPlayer(swapType: string, oldIndex: number, newIndex: number): void
  • Parameters

    • swapType: string
    • oldIndex: number
    • newIndex: number

    Returns void

TakingDamage

  • TakingDamage(rounded: number, preRound: number): void

TakingSuperPotion

  • TakingSuperPotion(): void

TerminatingPlayer

  • TerminatingPlayer(index: number, value: Player): void

WaivingParalysisSpeedEffect

  • WaivingParalysisSpeedEffect(): void

Winner

  • Winner(winner: string): void
  • Parameters

    • winner: string

    Returns void