UNPKG

bp-prism-game

Version:
68 lines (67 loc) 1.47 kB
import { OnInit, ElementRef } from '@angular/core'; import { GameService } from '../../../service/game.service'; import { AssetConfigurationModel } from '../../../model/asset-configuration.model'; import * as i0 from "@angular/core"; /** * The Prism Blast Component */ export declare class PrismBlastComponent implements OnInit { private gameService; /** * The canvas */ canvas: ElementRef<HTMLCanvasElement>; /** * CTS */ private ctx; /** * request Id */ private requestId; /** * prismBlasts */ private prismBlasts; /** * The prismBlast */ private prismBlast; /** * Debug Assets */ assets: AssetConfigurationModel[]; /** * The Constructor * @param gameService The GameService from DI */ constructor(gameService: GameService); /** * On Init */ ngOnInit(): void; /** * Add the aliens */ private addPrismBlasts; /** * Animate the object once */ animateAsset(): void; /** * Draw the board */ private draw; /** * Animate */ animate(): void; /** * toggleAssets * * @param key The asset to display */ toggleAssets(key: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<PrismBlastComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PrismBlastComponent, "bp-prism-blast", never, {}, {}, never, never>; }