bp-prism-game
Version:
The BP Prism Game
76 lines (75 loc) • 1.58 kB
TypeScript
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 Scenery Component
*/
export declare class SceneryComponent implements OnInit {
private gameService;
/**
* The canvas
*/
canvas: ElementRef<HTMLCanvasElement>;
/**
* CTS
*/
private ctx;
/**
* request Id
*/
private requestId;
/**
* Bases
*/
private sceneries;
/**
* The Base
*/
private scenery;
/**
* Debug Assets
*/
assets: AssetConfigurationModel[];
/**
* Gameboard
*/
private gameBoard;
/**
* The Constructor
* @param gameService The GameService from DI
*/
constructor(gameService: GameService);
/**
* On Init
*/
ngOnInit(): void;
/**
* Calculate the center posision
*/
private calculatePosition;
/**
* Add the prismBases
*/
private addScenery;
/**
* 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<SceneryComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SceneryComponent, "bp-prism-scenery", never, {}, {}, never, never>;
}