@firestone-hs/replay-parser
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.9.
33 lines (32 loc) • 1.41 kB
TypeScript
import { PlayState } from '@firestone-hs/reference-data';
import { Map } from 'immutable';
import { AllCardsService } from '../../services/all-cards.service';
import { Entity } from '../game/entity';
export declare abstract class Action {
protected readonly allCards?: AllCardsService;
readonly timestamp: number;
readonly index: number;
readonly textRaw: string;
readonly playerId?: number;
readonly opponentId?: number;
readonly originId: number;
readonly targetIds: readonly number[];
readonly entities: Map<number, Entity>;
readonly crossedEntities: readonly number[];
readonly highlightedEntities: readonly number[];
readonly activeSpell: number;
readonly activePlayer: number;
readonly isMulligan: boolean;
readonly isHeroSelection: boolean;
readonly isEndGame: boolean;
readonly endGameStatus: PlayState;
readonly targets: readonly [number, number][];
readonly options: readonly number[];
readonly damages: Map<number, number>;
protected abstract getInstance(): Action;
abstract update(entities: Map<number, Entity>): Action;
abstract enrichWithText(allEntitiesSoFar: Map<number, Entity>): Action;
constructor(allCards?: AllCardsService);
updateAction<T extends Action>(newAction: T): T;
protected generateTargetsText(allEntitiesSoFar: Map<number, Entity>): string;
}