UNPKG

bp-prism-game

Version:
34 lines (33 loc) 920 B
import { GameService } from '../service/game.service'; import { AssetClass } from '../asset/asset.class'; import { ImageLoadedEnum } from '../enum/image-loaded.enum'; import { GameAssetEnum } from '../enum/game-assets.enum'; /** * The Scenery Class */ export declare abstract class SceneryClass extends AssetClass { /** * Scenery Type */ protected type: GameAssetEnum; /** * Constructor * @param gameService The GameService * @param ctx The ctx * @param guid The guid of the scenery * @param imageType The animation number of the scenery */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number, imageType: ImageLoadedEnum); /** * Get the type */ getType(): GameAssetEnum; /** * Draw everything necessary */ protected draw(): void; /** * Animate the Scenery */ animate(): void; }