UNPKG

bp-prism-game

Version:
73 lines (72 loc) 1.64 kB
import { GameService } from '../../service/game.service'; import { AlienClass } from '../alien/alien.class'; /** * The Alien Dropship Class */ export declare class AlienDropshipClass extends AlienClass { /** * If the aliens should start to land */ private atLandingBase; /** * The tractor beam Image */ private tractorBeamImage; /** * The tractor beam Image */ private tractorBeamImages; /** * The path service */ private pathService; /** * The leaving the landingBase */ private isLeavingBase; /** * Tractor Beam Scale */ private tractorBeamScale; /** * The Tractor Beam Timmer */ private tractorBeamTimer; /** * The Tractor Beam Animation Counter */ private tractorBeamAnimationCounter; /** * Constructor * @param gameService The GameService * @param ctx The ctx * @param guid The guid of the alien * @param spawnLocation The guid of the alien */ constructor(gameService: GameService, ctx: CanvasRenderingContext2D, guid: number); /** * Load the alien Images */ private loadAlienDropshipImages; /** * If the aliens can land */ canLandAliens(): boolean; /** * Reset the ship to deploy aliens */ setAlienDropshipToDeploy(): void; /** * If the aliens have landed */ setAliensLanded(): void; /** * Draw the alien tractor beam */ private drawTractorBeam; /** * Animate the alien * @param now the current time */ animate(now?: number): void; }